fixing weird identifiers...

This commit is contained in:
ed
2026-08-22 22:48:58 -04:00
parent 52888015de
commit 159ead625e
3 changed files with 18 additions and 18 deletions
+10 -10
View File
@@ -336,21 +336,21 @@ typedef Struct_(Binds_gte_cross_v3s4) { V3_S4* src_a; V3_S4* src_b; V3_S4* out;
typedef Struct_(RegUse_gte_cross_v3s4) { typedef Struct_(RegUse_gte_cross_v3s4) {
Reg_(V3_S4) a; Reg_(V3_S4) a;
Reg_(V3_S4) b; Reg_(V3_S4) b;
union { Reg out, t0; } x; Reg out;
union { Reg src_a, t1, rt11; } y; Reg src_a;
union { Reg src_b, t2, rt22; } z; Reg src_b;
}; };
internal MipsAtom* gte_cross_v3s4(AtomArena_R aa, RegUse_gte_cross_v3s4 r) internal MipsAtom* gte_cross_v3s4(AtomArena_R aa, RegUse_gte_cross_v3s4 r)
atom_info(atom_bind(Binds_gte_cross_v3s4)) MipsAtom_Proc_(aa, { atom_info(atom_bind(Binds_gte_cross_v3s4)) MipsAtom_Proc_(aa, {
load_word(r.y.src_a, R_TapePtr, O_(Binds_gte_cross_v3s4,src_a)), load_word(r.src_a, R_TapePtr, O_(Binds_gte_cross_v3s4,src_a)),
load_word(r.z.src_b, R_TapePtr, O_(Binds_gte_cross_v3s4,src_b)), load_word(r.src_b, R_TapePtr, O_(Binds_gte_cross_v3s4,src_b)),
load_word(r.x.out, R_TapePtr, O_(Binds_gte_cross_v3s4,out)), load_word(r.out, R_TapePtr, O_(Binds_gte_cross_v3s4,out)),
LdSlot_ add_ui_self( R_TapePtr, S_(Binds_gte_cross_v3s4)), LdSlot_ add_ui_self(R_TapePtr, S_(Binds_gte_cross_v3s4)),
mac_load_v3s4(r.a, r.y.src_a, 0), LdSlot_ mac_load_v3s4(r.a, r.src_a, 0), LdSlot_
mac_load_v3s4(r.b, r.z.src_b, 0), LdSlot_ mac_load_v3s4(r.b, r.src_b, 0), LdSlot_
mac_gte_op_cross_v3s4(r.a, r.b), /* RT diagonal + IR + OP + MAC read + shift */ mac_gte_op_cross_v3s4(r.a, r.b), /* RT diagonal + IR + OP + MAC read + shift */
mac_store_v3s4(r.a, r.x.out, 0), mac_store_v3s4(r.a, r.out, 0),
mac_yield() mac_yield()
}) })
+3 -3
View File
@@ -140,9 +140,9 @@ internal void compile_init_atoms(void) {
RegUse_(gte_cross_v3s4) { RegUse_(gte_cross_v3s4) {
.a = ralloc_v3(), .a = ralloc_v3(),
.b = ralloc_v3(), .b = ralloc_v3(),
.x = ralloc(), .out = ralloc(),
.y = ralloc(), .src_a = ralloc(),
.z = ralloc(), .src_b = ralloc(),
}); });
regfile_reset(& rf); regfile_reset(& rf);
+3 -3
View File
@@ -61,7 +61,7 @@ I_ void ent_cube128_init(A8_V3_S2* verts, A6_V4_S2* faces) {
typedef Struct_(Ent_Cube) { typedef Struct_(Ent_Cube) {
V3_S4 accel; V3_S4 accel;
V3_S4 vel; V3_S4 vel;
V3_S4 pos; // RGA(Lengyel): affine point with implicit weight one. Storage alias of V3_S4. V3_S4 pos;
V3_S4 scale; V3_S4 scale;
V3_S2 rot; V3_S2 rot;
A8_V3_S2 verts; A8_V3_S2 verts;
@@ -88,7 +88,7 @@ I_ void ent_floor_init(A4_V3_S2* verts, A2_V3_S2* faces) {
}; };
typedef Struct_(Ent_Floor) { typedef Struct_(Ent_Floor) {
V3_S4 accel; V3_S4 accel;
V3_S4 pos; // RGA(Lengyel): affine point with implicit weight one. Storage alias of V3_S4. V3_S4 pos;
V3_S4 scale; V3_S4 scale;
V3_S2 rot; V3_S2 rot;
A4_V3_S2 verts; A4_V3_S2 verts;
@@ -96,7 +96,7 @@ typedef Struct_(Ent_Floor) {
}; };
typedef Struct_(Camera) { typedef Struct_(Camera) {
P3_S4 pos; // RGA(Lengyel): affine point with implicit weight one. Storage alias of V3_S4. P3_S4 pos;
V3_S2 rot; V3_S2 rot;
MT3_S2S4 look_at; MT3_S2S4 look_at;
}; };