sqrtf fix that didn't need fix

This commit is contained in:
SwareJonge 2024-11-18 16:50:20 +01:00
parent 8f4d04af4c
commit d98749d99f

View File

@ -15,8 +15,8 @@ namespace std
#if __MWERKS__ > 0x2301
extern inline float sqrtf(float x)
{
/*static*/ const double _half = .5f;
/*static*/ const double _three = 3.0f;
static const double _half = .5f;
static const double _three = 3.0f;
if (x > 0.0f)
{
double xd = (double)x;
@ -42,8 +42,8 @@ extern inline float sqrtf(float x)
#else
extern inline float sqrtf(float x)
{
/*static*/ const double _half = .5;
/*static*/ const double _three = 3.0;
static const double _half = .5;
static const double _three = 3.0;
volatile float y;
if (x > 0.0f)
{
@ -76,4 +76,4 @@ extern inline float tan(float x) { return tanf(x); }
}
#endif
#endif
#endif