diff --git a/Sources/Plasma/NucleusLib/pnEncryption/plRandom.h b/Sources/Plasma/NucleusLib/pnEncryption/plRandom.h index 177ce4c5..ba2172a1 100644 --- a/Sources/Plasma/NucleusLib/pnEncryption/plRandom.h +++ b/Sources/Plasma/NucleusLib/pnEncryption/plRandom.h @@ -83,7 +83,7 @@ inline float plRandom::RandNorm() const inline int plRandom::Rand() const { #ifndef FAST_Q - register int temp; + int temp; fSeed = fSeed * 1103515245 + 12345; temp = (int)((fSeed/65536)&32767); return (temp); diff --git a/Sources/Plasma/PubUtilLib/plFile/plEncryptedStream.cpp b/Sources/Plasma/PubUtilLib/plFile/plEncryptedStream.cpp index b3ba4a99..f6452d53 100644 --- a/Sources/Plasma/PubUtilLib/plFile/plEncryptedStream.cpp +++ b/Sources/Plasma/PubUtilLib/plFile/plEncryptedStream.cpp @@ -88,7 +88,7 @@ plEncryptedStream::~plEncryptedStream() // void plEncryptedStream::IEncipher(uint32_t* const v) { - register uint32_t y=v[0], z=v[1], sum=0, delta=0x9E3779B9, n=32; + uint32_t y=v[0], z=v[1], sum=0, delta=0x9E3779B9, n=32; while (n-- > 0) { @@ -102,7 +102,7 @@ void plEncryptedStream::IEncipher(uint32_t* const v) void plEncryptedStream::IDecipher(uint32_t* const v) { - register uint32_t y=v[0], z=v[1], sum=0xC6EF3720, delta=0x9E3779B9, n=32; + uint32_t y=v[0], z=v[1], sum=0xC6EF3720, delta=0x9E3779B9, n=32; // sum = delta<<5, in general sum = delta * n diff --git a/Sources/Plasma/PubUtilLib/plFile/plSecureStream.cpp b/Sources/Plasma/PubUtilLib/plFile/plSecureStream.cpp index 25d47a8c..40350191 100644 --- a/Sources/Plasma/PubUtilLib/plFile/plSecureStream.cpp +++ b/Sources/Plasma/PubUtilLib/plFile/plSecureStream.cpp @@ -111,8 +111,8 @@ plSecureStream::~plSecureStream() void plSecureStream::IEncipher(uint32_t* const v, uint32_t n) { - register unsigned long y=v[0], z=v[n-1], e, delta=0x9E3779B9; - register unsigned long q = 6 + 52/n, p, sum = 0; + unsigned long y=v[0], z=v[n-1], e, delta=0x9E3779B9; + unsigned long q = 6 + 52/n, p, sum = 0; while (q-- > 0) { @@ -132,8 +132,8 @@ void plSecureStream::IEncipher(uint32_t* const v, uint32_t n) void plSecureStream::IDecipher(uint32_t* const v, uint32_t n) { - register unsigned long y=v[0], z=v[n-1], e, delta=0x9E3779B9; - register unsigned long q = 6 + 52/n, p, sum = q * delta; + unsigned long y=v[0], z=v[n-1], e, delta=0x9E3779B9; + unsigned long q = 6 + 52/n, p, sum = q * delta; while (sum > 0) { diff --git a/Sources/Plasma/PubUtilLib/plTransform/mat_decomp.cpp b/Sources/Plasma/PubUtilLib/plTransform/mat_decomp.cpp index 73c275e2..d7257071 100644 --- a/Sources/Plasma/PubUtilLib/plTransform/mat_decomp.cpp +++ b/Sources/Plasma/PubUtilLib/plTransform/mat_decomp.cpp @@ -145,7 +145,7 @@ gemQuat Qt_FromMatrix(HMatrix mat) * Otherwise, the largest diagonal entry corresponds to the largest of |x|, * |y|, or |z|, one of which must be larger than |w|, and at least 1/2. */ gemQuat qu; - register double tr, s; + double tr, s; tr = mat[X][X] + mat[Y][Y]+ mat[Z][Z]; if (tr >= 0.0) {