mirror of
https://github.com/SwareJonge/mkdd.git
synced 2024-11-26 23:00:25 +00:00
sqrtf fix that didn't need fix
This commit is contained in:
parent
8f4d04af4c
commit
d98749d99f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user