mirror of
https://github.com/Ed94/pikuma_ps1.git
synced 2026-06-20 10:34:59 -07:00
big oops
This commit is contained in:
+11
-11
@@ -43,12 +43,12 @@
|
||||
#define T_same(a,b) _Generic((a), typeof((b)): 1, default: 0)
|
||||
|
||||
#define r_(ptr) C_(T_(ptr[0])*R_, ptr)
|
||||
#define v_(ptr) C_(T_(ptr[0])*V_, ptr)
|
||||
#define tr_(type, ptr) C_(type*R_, ptr)
|
||||
#define tv_(type, ptr) C_(type*V_, ptr)
|
||||
#define v_(ptr) C_(T_(ptr[0])V_*, ptr)
|
||||
#define tr_(type, ptr) C_(type *R_, ptr)
|
||||
#define tv_(type, ptr) C_(type V_*, ptr)
|
||||
|
||||
#define TypeR_(type) type*restrict type ## _R
|
||||
#define TypeV_(type) type*volatile type ## _V
|
||||
#define TypeR_(type) type *R_ type ## _R
|
||||
#define TypeV_(type) type V_* type ## _V
|
||||
#define PtrSet_(type) TypeR_(type); typedef TypeV_(type)
|
||||
#define TSet_(type) type; typedef PtrSet_(type)
|
||||
|
||||
@@ -86,12 +86,12 @@ typedef __UINT32_TYPE__ TSet_(B4);
|
||||
#define s2_(value) C_(S2, value)
|
||||
#define s4_(value) C_(S4, value)
|
||||
|
||||
#define u1_r(value) C_(U1*R_, value)
|
||||
#define u2_r(value) C_(U2*R_, value)
|
||||
#define u4_r(value) C_(U4*R_, value)
|
||||
#define u1_v(value) C_(U1*V_, value)
|
||||
#define u2_v(value) C_(U2*V_, value)
|
||||
#define u4_v(value) C_(U4*V_, value)
|
||||
#define u1_r(value) C_(U1 *R_, value)
|
||||
#define u2_r(value) C_(U2 *R_, value)
|
||||
#define u4_r(value) C_(U4 *R_, value)
|
||||
#define u1_v(value) C_(U1 V_*, value)
|
||||
#define u2_v(value) C_(U2 V_*, value)
|
||||
#define u4_v(value) C_(U4 V_*, value)
|
||||
enum { false = 0, true = 1, true_overflow, };
|
||||
|
||||
typedef void Proc_(VoidFn) (void);
|
||||
|
||||
@@ -61,7 +61,7 @@ typedef Struct_(Slice_Str8) { Str8* ptr; U4 len; };
|
||||
typedef Struct_(Slice) { U4 ptr, len; }; // Untyped Slice
|
||||
FI_ Slice slice_ut_(U4 ptr, U4 len) { return (Slice){ptr, len}; }
|
||||
|
||||
#define Slice_(type) Struct_(tmpl(Slice,type)) { type* ptr; U4 len; }
|
||||
#define Slice_(type) Struct_(tmpl(Slice,type)) { type* ptr; U4 len; }
|
||||
typedef Slice_(B1);
|
||||
#define slice_assert(s) do { assert((s).ptr != 0); assert((s).len > 0); } while(0)
|
||||
#define slice_end(slice) ((slice).ptr + (slice).len)
|
||||
|
||||
@@ -226,7 +226,7 @@ void update(PrimitiveArena* pa, U4* ordering_buf)
|
||||
// static_mem.cube.rot.x += 6;
|
||||
// static_mem.cube.rot.y += 8;
|
||||
// static_mem.cube.rot.z += 12;
|
||||
static_mem.cube.rot.y += 20;
|
||||
static_mem.cube.rot.y += 30;
|
||||
}
|
||||
// Draw Floor
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user