From 06e2a1568ee39f4f9e0120719945b9acafcc3b96 Mon Sep 17 00:00:00 2001 From: Daniel Gibson Date: Thu, 5 Jan 2023 04:57:54 +0100 Subject: [PATCH] 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 --- idlib/Lib.cpp | 2 +- idlib/hashing/MD5.cpp | 2 +- idlib/math/Simd_Generic.cpp | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/idlib/Lib.cpp b/idlib/Lib.cpp index 3c83bae..8433095 100644 --- a/idlib/Lib.cpp +++ b/idlib/Lib.cpp @@ -300,7 +300,7 @@ RESULTS Reverses the byte order in each of elcount elements. ===================================================================== */ ID_INLINE static void RevBytesSwap( void *bp, int elsize, int elcount ) { - register unsigned char *p, *q; + unsigned char *p, *q; p = ( unsigned char * ) bp; diff --git a/idlib/hashing/MD5.cpp b/idlib/hashing/MD5.cpp index de9f855..f4f9836 100644 --- a/idlib/hashing/MD5.cpp +++ b/idlib/hashing/MD5.cpp @@ -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] ) { - register unsigned int a, b, c, d; + unsigned int a, b, c, d; a = state[0]; b = state[1]; diff --git a/idlib/math/Simd_Generic.cpp b/idlib/math/Simd_Generic.cpp index c20f6a4..9ce25f6 100644 --- a/idlib/math/Simd_Generic.cpp +++ b/idlib/math/Simd_Generic.cpp @@ -1802,7 +1802,7 @@ void VPCALL idSIMD_Generic::MatX_LowerTriangularSolve( const idMatX &L, float *x lptr = L[skip]; int i, j; - register double s0, s1, s2, s3; + double s0, s1, s2, s3; for ( i = skip; i < n; i++ ) { s0 = lptr[0] * x[0]; @@ -1928,7 +1928,7 @@ void VPCALL idSIMD_Generic::MatX_LowerTriangularSolveTranspose( const idMatX &L, } int i, j; - register double s0, s1, s2, s3; + double s0, s1, s2, s3; float *xptr; lptr = L.ToFloatPtr() + n * nc + n - 4;