Skip to content

Commit 1eab35e

Browse files
committed
Remove register keyword from most function declarations
1 parent c93feb0 commit 1eab35e

File tree

3 files changed

+44
-44
lines changed

3 files changed

+44
-44
lines changed

gc/ogc/gu.h

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -355,14 +355,14 @@ void c_guVecMultiplySR(const Mtx mt,const guVector *src,guVector *dst);
355355
f32 c_guVecDotProduct(const guVector *a,const guVector *b);
356356

357357
#ifdef GEKKO
358-
void ps_guVecAdd(register const guVector *a,register const guVector *b,register guVector *ab);
359-
void ps_guVecSub(register const guVector *a,register const guVector *b,register guVector *ab);
360-
void ps_guVecScale(register const guVector *src,register guVector *dst,f32 scale);
361-
void ps_guVecNormalize(register const guVector *src,guVector *unit);
362-
void ps_guVecCross(register const guVector *a,register const guVector *b,register guVector *axb);
363-
void ps_guVecMultiply(register const Mtx mt,register const guVector *src,register guVector *dst);
364-
void ps_guVecMultiplySR(register const Mtx mt,register const guVector *src,register guVector *dst);
365-
f32 ps_guVecDotProduct(register const guVector *a,register const guVector *b);
358+
void ps_guVecAdd(const guVector *a,const guVector *b,guVector *ab);
359+
void ps_guVecSub(const guVector *a,const guVector *b,guVector *ab);
360+
void ps_guVecScale(const guVector *src,guVector *dst,f32 scale);
361+
void ps_guVecNormalize(const guVector *src,guVector *unit);
362+
void ps_guVecCross(const guVector *a,const guVector *b,guVector *axb);
363+
void ps_guVecMultiply(const Mtx mt,const guVector *src,guVector *dst);
364+
void ps_guVecMultiplySR(const Mtx mt,const guVector *src,guVector *dst);
365+
f32 ps_guVecDotProduct(const guVector *a,const guVector *b);
366366
#endif //GEKKO
367367

368368
void c_guQuatAdd(const guQuaternion *a,const guQuaternion *b,guQuaternion *ab);
@@ -373,11 +373,11 @@ void c_guQuatInverse(const guQuaternion *a,guQuaternion *d);
373373
void c_guQuatMtx(guQuaternion *a,const Mtx m);
374374

375375
#ifdef GEKKO
376-
void ps_guQuatAdd(register const guQuaternion *a,register const guQuaternion *b,register guQuaternion *ab);
377-
void ps_guQuatSub(register const guQuaternion *a,register const guQuaternion *b,register guQuaternion *ab);
378-
void ps_guQuatMultiply(register const guQuaternion *a,register const guQuaternion *b,register guQuaternion *ab);
379-
void ps_guQuatNormalize(register const guQuaternion *a,register guQuaternion *d);
380-
void ps_guQuatInverse(register const guQuaternion *a,register guQuaternion *d);
376+
void ps_guQuatAdd(const guQuaternion *a,const guQuaternion *b,guQuaternion *ab);
377+
void ps_guQuatSub(const guQuaternion *a,const guQuaternion *b,guQuaternion *ab);
378+
void ps_guQuatMultiply(const guQuaternion *a,const guQuaternion *b,guQuaternion *ab);
379+
void ps_guQuatNormalize(const guQuaternion *a,guQuaternion *d);
380+
void ps_guQuatInverse(const guQuaternion *a,guQuaternion *d);
381381
#endif
382382

383383
void c_guMtxIdentity(Mtx mt);
@@ -399,22 +399,22 @@ void c_guMtxReflect(Mtx m,const guVector *p,const guVector *n);
399399
void c_guMtxQuat(Mtx m,const guQuaternion *a);
400400

401401
#ifdef GEKKO
402-
void ps_guMtxIdentity(register Mtx mt);
403-
void ps_guMtxCopy(register const Mtx src,register Mtx dst);
404-
void ps_guMtxConcat(register const Mtx a,register const Mtx b,register Mtx ab);
405-
void ps_guMtxTranspose(register const Mtx src,register Mtx xPose);
406-
u32 ps_guMtxInverse(register const Mtx src,register Mtx inv);
407-
u32 ps_guMtxInvXpose(register const Mtx src,register Mtx xPose);
408-
void ps_guMtxScale(register Mtx mt,register f32 xS,register f32 yS,register f32 zS);
409-
void ps_guMtxScaleApply(register const Mtx src,register Mtx dst,register f32 xS,register f32 yS,register f32 zS);
410-
void ps_guMtxApplyScale(register const Mtx src,register Mtx dst,register f32 xS,register f32 yS,register f32 zS);
411-
void ps_guMtxTrans(register Mtx mt,register f32 xT,register f32 yT,register f32 zT);
412-
void ps_guMtxTransApply(register const Mtx src,register Mtx dst,register f32 xT,register f32 yT,register f32 zT);
413-
void ps_guMtxApplyTrans(register const Mtx src,register Mtx dst,register f32 xT,register f32 yT,register f32 zT);
414-
void ps_guMtxRotRad(register Mtx mt,register char axis,register f32 rad);
415-
void ps_guMtxRotTrig(register Mtx mt,register char axis,register f32 sinA,register f32 cosA);
416-
void ps_guMtxRotAxisRad(register Mtx mt,register const guVector *axis,register f32 rad);
417-
void ps_guMtxReflect(register Mtx m,register const guVector *p,register const guVector *n);
402+
void ps_guMtxIdentity(Mtx mt);
403+
void ps_guMtxCopy(const Mtx src,Mtx dst);
404+
void ps_guMtxConcat(const Mtx a,const Mtx b,Mtx ab);
405+
void ps_guMtxTranspose(const Mtx src,Mtx xPose);
406+
u32 ps_guMtxInverse(const Mtx src,Mtx inv);
407+
u32 ps_guMtxInvXpose(const Mtx src,Mtx xPose);
408+
void ps_guMtxScale(Mtx mt,f32 xS,f32 yS,f32 zS);
409+
void ps_guMtxScaleApply(const Mtx src,Mtx dst,f32 xS,f32 yS,f32 zS);
410+
void ps_guMtxApplyScale(const Mtx src,Mtx dst,f32 xS,f32 yS,f32 zS);
411+
void ps_guMtxTrans(Mtx mt,f32 xT,f32 yT,f32 zT);
412+
void ps_guMtxTransApply(const Mtx src,Mtx dst,f32 xT,f32 yT,f32 zT);
413+
void ps_guMtxApplyTrans(const Mtx src,Mtx dst,f32 xT,f32 yT,f32 zT);
414+
void ps_guMtxRotRad(Mtx mt,char axis,f32 rad);
415+
void ps_guMtxRotTrig(Mtx mt,char axis,f32 sinA,f32 cosA);
416+
void ps_guMtxRotAxisRad(Mtx mt,const guVector *axis,f32 rad);
417+
void ps_guMtxReflect(Mtx m,const guVector *p,const guVector *n);
418418
#endif //GEKKO
419419

420420
void guMtx44Identity(Mtx44 mt);

libogc/gu.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#include <gu.h>
22
#include <math.h>
33

4-
extern void __ps_guMtxRotAxisRadInternal(register Mtx mt,register const guVector *axis,register f32 sT,register f32 cT);
4+
extern void __ps_guMtxRotAxisRadInternal(Mtx mt,const guVector *axis,f32 sT,f32 cT);
55

66
void guFrustum(Mtx44 mt,f32 t,f32 b,f32 l,f32 r,f32 n,f32 f)
77
{
@@ -562,23 +562,23 @@ void c_guMtxRotRad(Mtx mt,char axis,f32 rad)
562562
}
563563

564564
#ifdef GEKKO
565-
void ps_guMtxRotRad(register Mtx mt,register char axis,register f32 rad)
565+
void ps_guMtxRotRad(Mtx mt,char axis,f32 rad)
566566
{
567-
register f32 sinA,cosA;
567+
f32 sinA,cosA;
568568

569569
sinA = sinf(rad);
570570
cosA = cosf(rad);
571571

572572
ps_guMtxRotTrig(mt,axis,sinA,cosA);
573573
}
574574

575-
void ps_guMtxRotAxisRad(register Mtx mt,register const guVector *axis,register f32 rad)
575+
void ps_guMtxRotAxisRad(Mtx mt,const guVector *axis,f32 rad)
576576
{
577577
f32 sinT,cosT;
578-
578+
579579
sinT = sinf(rad);
580580
cosT = cosf(rad);
581-
581+
582582
__ps_guMtxRotAxisRadInternal(mt,axis,sinT,cosT);
583583
}
584584

@@ -995,7 +995,7 @@ void c_guQuatAdd(const guQuaternion *a,const guQuaternion *b,guQuaternion *ab)
995995
}
996996

997997
#ifdef GEKKO
998-
void ps_guQuatAdd(register const guQuaternion *a,register const guQuaternion *b,register guQuaternion *ab)
998+
void ps_guQuatAdd(const guQuaternion *a,const guQuaternion *b,guQuaternion *ab)
999999
{
10001000
register f32 tmp0,tmp1;
10011001

@@ -1024,7 +1024,7 @@ void c_guQuatSub(const guQuaternion *a,const guQuaternion *b,guQuaternion *ab)
10241024
}
10251025

10261026
#ifdef GEKKO
1027-
void ps_guQuatSub(register const guQuaternion *a,register const guQuaternion *b,register guQuaternion *ab)
1027+
void ps_guQuatSub(const guQuaternion *a,const guQuaternion *b,guQuaternion *ab)
10281028
{
10291029
register f32 tmp0,tmp1;
10301030

@@ -1061,7 +1061,7 @@ void c_guQuatMultiply(const guQuaternion *a,const guQuaternion *b,guQuaternion *
10611061
}
10621062

10631063
#ifdef GEKKO
1064-
void ps_guQuatMultiply(register const guQuaternion *a,register const guQuaternion *b,register guQuaternion *ab)
1064+
void ps_guQuatMultiply(const guQuaternion *a,const guQuaternion *b,guQuaternion *ab)
10651065
{
10661066
register f32 aXY,aZW,bXY,bZW;
10671067
register f32 tmp0,tmp1,tmp2,tmp3,tmp4,tmp5,tmp6,tmp7;
@@ -1112,7 +1112,7 @@ void c_guQuatNormalize(const guQuaternion *a,guQuaternion *d)
11121112
}
11131113

11141114
#ifdef GEKKO
1115-
void ps_guQuatNormalize(register const guQuaternion *a,register guQuaternion *d)
1115+
void ps_guQuatNormalize(const guQuaternion *a,guQuaternion *d)
11161116
{
11171117
register f32 c_zero = 0.0f;
11181118
register f32 c_half = 0.5f;
@@ -1158,7 +1158,7 @@ void c_guQuatInverse(const guQuaternion *a,guQuaternion *d)
11581158
}
11591159

11601160
#ifdef GEKKO
1161-
void ps_guQuatInverse(register const guQuaternion *a,register guQuaternion *d)
1161+
void ps_guQuatInverse(const guQuaternion *a,guQuaternion *d)
11621162
{
11631163
register f32 c_one = 1.0f;
11641164
register f32 axy,azw,tmp0,tmp1,tmp2,tmp3,tmp4,tmp5;

libogc/gx.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2811,7 +2811,7 @@ void GX_SetZTexture(u8 op,u8 fmt,u32 bias)
28112811
GX_LOAD_BP_REG(0xF5000000|(val&0x00FFFFFF));
28122812
}
28132813

2814-
static inline void WriteMtxPS4x3(register const Mtx mt,register void *wgpipe)
2814+
static inline void WriteMtxPS4x3(const Mtx mt,void *wgpipe)
28152815
{
28162816
register f32 tmp0,tmp1,tmp2,tmp3,tmp4,tmp5;
28172817
__asm__ __volatile__ (
@@ -2833,7 +2833,7 @@ static inline void WriteMtxPS4x3(register const Mtx mt,register void *wgpipe)
28332833
);
28342834
}
28352835

2836-
static inline void WriteMtxPS3x3from4x3(register const Mtx mt,register void *wgpipe)
2836+
static inline void WriteMtxPS3x3from4x3(const Mtx mt,void *wgpipe)
28372837
{
28382838
register f32 tmp0,tmp1,tmp2,tmp3,tmp4,tmp5;
28392839
__asm__ __volatile__
@@ -2855,7 +2855,7 @@ static inline void WriteMtxPS3x3from4x3(register const Mtx mt,register void *wgp
28552855
);
28562856
}
28572857

2858-
static inline void WriteMtxPS3x3(register const Mtx33 mt,register void *wgpipe)
2858+
static inline void WriteMtxPS3x3(const Mtx33 mt,void *wgpipe)
28592859
{
28602860
register f32 tmp0,tmp1,tmp2,tmp3,tmp4;
28612861
__asm__ __volatile__
@@ -2875,7 +2875,7 @@ static inline void WriteMtxPS3x3(register const Mtx33 mt,register void *wgpipe)
28752875
);
28762876
}
28772877

2878-
static inline void WriteMtxPS4x2(register const Mtx mt,register void *wgpipe)
2878+
static inline void WriteMtxPS4x2(const Mtx mt,void *wgpipe)
28792879
{
28802880
register f32 tmp0,tmp1,tmp2,tmp3;
28812881
__asm__ __volatile__

0 commit comments

Comments
 (0)