Skip to content

Commit

Permalink
Remove keyword 'register', which is obsolete and ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
Zegeri committed Sep 24, 2018
1 parent 9b8d3cb commit 107f78b
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/xrGame/ik/math3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ void hmatmult(Matrix A, Matrix B, Matrix C)
* A *CAN* point to the same matrix as B or C.
*/
{
register float *a, *b, *c, *bp, *cp;
register float *bmax, *cmax, *cpmax;
register float *b32, *c00, *c03;
float *a, *b, *c, *bp, *cp;
float *bmax, *cmax, *cpmax;
float *b32, *c00, *c03;
Matrix Bt, Ct;

if (A == B)
Expand Down Expand Up @@ -159,7 +159,7 @@ void inverthomomatrix(Matrix N, Matrix M)
* n = inverse of m
*/
{
register float *n, *m, *nmax, *C, *m3;
float *n, *m, *nmax, *C, *m3;

nmax = &N[2][3];
n = &N[0][0];
Expand Down Expand Up @@ -196,7 +196,7 @@ void vecmult0(float y[], float x[], Matrix M)
* y = x * M, with y[3] = 0
*/
{
register int i, j;
int i, j;
float Y[3];

for (i = 0; i < 3; i++)
Expand All @@ -218,7 +218,7 @@ void vecmult(float y[], float x[], Matrix M)
* y = x * M, with y[3] = 1
*/
{
register int i, j;
int i, j;
float Y[3];

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

c = _cos(theta);
s = _sin(theta);
Expand Down Expand Up @@ -584,9 +584,9 @@ void rmatmult(Matrix A, Matrix B, Matrix C)
Matrix Temp1;
Matrix Temp2;

register float* a = (float*)A;
register float* b;
register float* c;
float* a = (float*)A;
float* b;
float* c;

if (A == B)
{
Expand Down Expand Up @@ -654,7 +654,7 @@ void invertrmatrix(Matrix N, Matrix M)
* n = inverse of m
*/
{
register float *n, *m, *nmax, *C;
float *n, *m, *nmax, *C;

nmax = &N[2][3];
n = &N[0][0];
Expand Down

0 comments on commit 107f78b

Please sign in to comment.