Skip to content

Commit 107f78b

Browse files
committed
Remove keyword 'register', which is obsolete and ignored
1 parent 9b8d3cb commit 107f78b

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/xrGame/ik/math3d.cpp

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ void hmatmult(Matrix A, Matrix B, Matrix C)
7777
* A *CAN* point to the same matrix as B or C.
7878
*/
7979
{
80-
register float *a, *b, *c, *bp, *cp;
81-
register float *bmax, *cmax, *cpmax;
82-
register float *b32, *c00, *c03;
80+
float *a, *b, *c, *bp, *cp;
81+
float *bmax, *cmax, *cpmax;
82+
float *b32, *c00, *c03;
8383
Matrix Bt, Ct;
8484

8585
if (A == B)
@@ -159,7 +159,7 @@ void inverthomomatrix(Matrix N, Matrix M)
159159
* n = inverse of m
160160
*/
161161
{
162-
register float *n, *m, *nmax, *C, *m3;
162+
float *n, *m, *nmax, *C, *m3;
163163

164164
nmax = &N[2][3];
165165
n = &N[0][0];
@@ -196,7 +196,7 @@ void vecmult0(float y[], float x[], Matrix M)
196196
* y = x * M, with y[3] = 0
197197
*/
198198
{
199-
register int i, j;
199+
int i, j;
200200
float Y[3];
201201

202202
for (i = 0; i < 3; i++)
@@ -218,7 +218,7 @@ void vecmult(float y[], float x[], Matrix M)
218218
* y = x * M, with y[3] = 1
219219
*/
220220
{
221-
register int i, j;
221+
int i, j;
222222
float Y[3];
223223

224224
for (i = 0; i < 3; i++)
@@ -241,9 +241,9 @@ void axisangletomatrix(Matrix m, float axis[], float theta)
241241
* like the coordinate axes.
242242
*/
243243
{
244-
register float s, v, c;
245-
register float* p;
246-
register float a01, a02, a12, a0s, a1s, a2s, a01v, a02v, a12v;
244+
float s, v, c;
245+
float* p;
246+
float a01, a02, a12, a0s, a1s, a2s, a01v, a02v, a12v;
247247

248248
c = _cos(theta);
249249
s = _sin(theta);
@@ -584,9 +584,9 @@ void rmatmult(Matrix A, Matrix B, Matrix C)
584584
Matrix Temp1;
585585
Matrix Temp2;
586586

587-
register float* a = (float*)A;
588-
register float* b;
589-
register float* c;
587+
float* a = (float*)A;
588+
float* b;
589+
float* c;
590590

591591
if (A == B)
592592
{
@@ -654,7 +654,7 @@ void invertrmatrix(Matrix N, Matrix M)
654654
* n = inverse of m
655655
*/
656656
{
657-
register float *n, *m, *nmax, *C;
657+
float *n, *m, *nmax, *C;
658658

659659
nmax = &N[2][3];
660660
n = &N[0][0];

0 commit comments

Comments
 (0)