Skip to content

Commit 2f65e36

Browse files
authored
[Chores] Format code
1 parent e9dc935 commit 2f65e36

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/mips/psyqo/bump-allocator.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@ namespace psyqo {
5252
template <size_t N>
5353
class BumpAllocator {
5454
public:
55-
template <Primitive P, typename ...Args>
56-
Fragments::SimpleFragment<P> &allocateFragment(Args ...args) {
55+
template <Primitive P, typename... Args>
56+
Fragments::SimpleFragment<P> &allocateFragment(Args... args) {
5757
static constexpr size_t size = sizeof(Fragments::SimpleFragment<P>);
5858
uint8_t *ptr = m_current;
5959
m_current += size;
6060
return *new (ptr) Fragments::SimpleFragment<P>(args...);
6161
}
62-
template <typename T, typename ...Args>
63-
T &allocate(Args ...args) {
62+
template <typename T, typename... Args>
63+
T &allocate(Args... args) {
6464
size_t size = sizeof(T);
6565
uint8_t *ptr = m_current;
6666
if constexpr (alignof(T) > 1) {

src/mips/psyqo/examples/cube/cube.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ void CubeScene::frame() {
175175

176176
// Read the result of nclip and skip rendering this face if it's not facing us
177177
int32_t mac0 = 0;
178-
psyqo::GTE::read<psyqo::GTE::Register::MAC0>(reinterpret_cast<uint32_t *>(&mac0));
178+
psyqo::GTE::read<psyqo::GTE::Register::MAC0>(reinterpret_cast<uint32_t*>(&mac0));
179179
if (mac0 <= 0) continue;
180180

181181
// Since the GTE can only handle 3 vertices at a time, we need to store our first vertex
@@ -191,7 +191,7 @@ void CubeScene::frame() {
191191
// Calculate the average Z for the z-Index to be put in the ordering table
192192
psyqo::GTE::Kernels::avsz4();
193193
int32_t zIndex = 0;
194-
psyqo::GTE::read<psyqo::GTE::Register::OTZ>(reinterpret_cast<uint32_t *>(&zIndex));
194+
psyqo::GTE::read<psyqo::GTE::Register::OTZ>(reinterpret_cast<uint32_t*>(&zIndex));
195195

196196
// If the Z-index is out of bounds for our ordering table, we skip rendering this face.
197197
if (zIndex < 0 || zIndex >= ORDERING_TABLE_SIZE) continue;

src/mips/psyqo/primitives/common.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ enum ColorMode { Tex4Bits, Tex8Bits, Tex16Bits };
102102
} // namespace Prim::TPageAttr
103103

104104
namespace Prim {
105-
enum class Transparency { Auto, Opaque, SemiTransparent };
105+
enum class Transparency { Auto, Opaque, SemiTransparent };
106106
}
107107

108108
namespace PrimPieces {

0 commit comments

Comments
 (0)