Skip to content

Commit

Permalink
Merge pull request #1491 from grumpycoders/chores-code-format
Browse files Browse the repository at this point in the history
[Chores] Format code
  • Loading branch information
nicolasnoble authored Dec 24, 2023
2 parents 892ec92 + 72c141d commit 34a587e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 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
3 changes: 2 additions & 1 deletion src/mips/tests/dma/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ SOFTWARE.
#endif

#include "common/hardware/dma.h"
#include "common/hardware/hwregs.h"

#include "common/hardware/gpu.h"
#include "common/hardware/hwregs.h"
#include "common/hardware/irq.h"
#include "common/syscalls/syscalls.h"

Expand Down

0 comments on commit 34a587e

Please sign in to comment.