Remove Deprecated 'register' Keyword (#300)

Fixes compile errors when compiling with C++17 or better.
This commit is contained in:
caxanga334 2025-01-27 22:52:52 -03:00 committed by GitHub
parent fef9f18cfc
commit 47a0ae90ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -328,7 +328,7 @@ void inline SinCos( float radians, float *sine, float *cosine )
fstp DWORD PTR [eax]
}
#elif defined( _LINUX ) || defined ( __APPLE__ )
register double __cosr, __sinr;
double __cosr, __sinr;
__asm __volatile__
("fsincos"
: "=t" (__cosr), "=u" (__sinr) : "0" (radians));