mirror of
https://github.com/dhewm/dhewm3.git
synced 2024-11-23 04:51:56 +00:00
Don't use "register" keyword, it was deprecated in C++11
.. and even removed in C++17 - and before that it probably didn't do much in most compilers
This commit is contained in:
parent
279a40a981
commit
5844af62ce
4 changed files with 5 additions and 5 deletions
|
@ -298,7 +298,7 @@ RESULTS
|
||||||
Reverses the byte order in each of elcount elements.
|
Reverses the byte order in each of elcount elements.
|
||||||
===================================================================== */
|
===================================================================== */
|
||||||
ID_INLINE static void RevBytesSwap( void *bp, int elsize, int elcount ) {
|
ID_INLINE static void RevBytesSwap( void *bp, int elsize, int elcount ) {
|
||||||
register unsigned char *p, *q;
|
unsigned char *p, *q;
|
||||||
|
|
||||||
p = ( unsigned char * ) bp;
|
p = ( unsigned char * ) bp;
|
||||||
|
|
||||||
|
|
|
@ -54,7 +54,7 @@ the data and converts bytes into longwords for this routine.
|
||||||
=================
|
=================
|
||||||
*/
|
*/
|
||||||
void MD5_Transform( unsigned int state[4], unsigned int in[16] ) {
|
void MD5_Transform( unsigned int state[4], unsigned int in[16] ) {
|
||||||
register unsigned int a, b, c, d;
|
unsigned int a, b, c, d;
|
||||||
|
|
||||||
a = state[0];
|
a = state[0];
|
||||||
b = state[1];
|
b = state[1];
|
||||||
|
|
|
@ -1802,7 +1802,7 @@ void VPCALL idSIMD_Generic::MatX_LowerTriangularSolve( const idMatX &L, float *x
|
||||||
lptr = L[skip];
|
lptr = L[skip];
|
||||||
|
|
||||||
int i, j;
|
int i, j;
|
||||||
register double s0, s1, s2, s3;
|
double s0, s1, s2, s3;
|
||||||
|
|
||||||
for ( i = skip; i < n; i++ ) {
|
for ( i = skip; i < n; i++ ) {
|
||||||
s0 = lptr[0] * x[0];
|
s0 = lptr[0] * x[0];
|
||||||
|
@ -1928,7 +1928,7 @@ void VPCALL idSIMD_Generic::MatX_LowerTriangularSolveTranspose( const idMatX &L,
|
||||||
}
|
}
|
||||||
|
|
||||||
int i, j;
|
int i, j;
|
||||||
register double s0, s1, s2, s3;
|
double s0, s1, s2, s3;
|
||||||
float *xptr;
|
float *xptr;
|
||||||
|
|
||||||
lptr = L.ToFloatPtr() + n * nc + n - 4;
|
lptr = L.ToFloatPtr() + n * nc + n - 4;
|
||||||
|
|
|
@ -751,7 +751,7 @@ void codec::IRGBtab(void)
|
||||||
float codec::Snr( byte *old, byte *bnew, int size ) {
|
float codec::Snr( byte *old, byte *bnew, int size ) {
|
||||||
int i, j;
|
int i, j;
|
||||||
float fsnr;
|
float fsnr;
|
||||||
register int ind;
|
int ind;
|
||||||
|
|
||||||
ind = 0;
|
ind = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue