mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-18 19:29:09 +00:00
Remove unneeded register keyword.
In modern compilers, the register keyword has no effect. On clang, it generates warnings.
This commit is contained in:
@ -106,13 +106,13 @@ public:
|
||||
|
||||
inline float hsFastMath::InvSqrtAppr(float x)
|
||||
{
|
||||
register unsigned long a = *(long*)&x;
|
||||
register float arg = x;
|
||||
unsigned long a = *(long*)&x;
|
||||
float arg = x;
|
||||
union {
|
||||
long i;
|
||||
float f;
|
||||
} seed;
|
||||
register float r;
|
||||
float r;
|
||||
|
||||
extern unsigned char statSeedTable[];
|
||||
|
||||
@ -133,13 +133,13 @@ inline float hsFastMath::InvSqrtAppr(float x)
|
||||
|
||||
inline float hsFastMath::InvSqrt(float x)
|
||||
{
|
||||
register unsigned long a = *(long*)&x;
|
||||
register float arg = x;
|
||||
unsigned long a = *(long*)&x;
|
||||
float arg = x;
|
||||
union {
|
||||
long i;
|
||||
float f;
|
||||
} seed;
|
||||
register float r;
|
||||
float r;
|
||||
|
||||
extern unsigned char statSeedTable[];
|
||||
|
||||
|
Reference in New Issue
Block a user