Skip to content

Commit

Permalink
[Chores] Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasnoble authored Dec 20, 2023
1 parent 4b493ab commit b252ac8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/mips/psyqo/fixed-point.hh
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class FixedPoint {
* power of 2.
* @return constexpr T The integer part of the fixed point number.
*/
template<size_t factor = 1>
template <size_t factor = 1>
constexpr T integer() const {
if constexpr (std::is_signed<T>::value) {
if (value < 0) {
Expand Down
3 changes: 1 addition & 2 deletions src/mips/psyqo/fragments.hh
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ template <Primitive Prim>
struct SimpleFragment {
constexpr size_t maxSize() const { return 1; }
SimpleFragment() {
static_assert(sizeof(*this) == (sizeof(uint32_t) + sizeof(Prim)),
"Spurious padding in simple fragment");
static_assert(sizeof(*this) == (sizeof(uint32_t) + sizeof(Prim)), "Spurious padding in simple fragment");
}
typedef Prim FragmentBaseType;
constexpr size_t getActualFragmentSize() const { return sizeof(Prim) / sizeof(uint32_t); }
Expand Down

0 comments on commit b252ac8

Please sign in to comment.