Update J3ML.cpp
Fix for GCC 13.3
This commit is contained in:
@@ -239,26 +239,26 @@ namespace J3ML
|
||||
#endif
|
||||
}
|
||||
|
||||
float Tan(float x) { return std::tanf(x); }
|
||||
float Tan(float x) { return std::tan(x); }
|
||||
|
||||
void SinCos(float x, float &outSin, float &outCos) {
|
||||
outSin = Sin(x);
|
||||
outCos = Cos(x);
|
||||
}
|
||||
|
||||
float Asin(float x) { return std::asinf(x); }
|
||||
float Asin(float x) { return std::asin(x); }
|
||||
|
||||
float Acos(float x) { return std::acosf(x); }
|
||||
float Acos(float x) { return std::acos(x); }
|
||||
|
||||
float Atan(float x) { return std::atanf(x); }
|
||||
float Atan(float x) { return std::atan(x); }
|
||||
|
||||
float Atan2(float y, float x) { return std::atan2f(y, x); }
|
||||
float Atan2(float y, float x) { return std::atan2(y, x); }
|
||||
|
||||
float Sinh(float x) { return std::sinhf(x); }
|
||||
float Sinh(float x) { return std::sinh(x); }
|
||||
|
||||
float Cosh(float x) { return std::coshf(x); }
|
||||
float Cosh(float x) { return std::cosh(x); }
|
||||
|
||||
float Tanh(float x) { return std::tanhf(x); }
|
||||
float Tanh(float x) { return std::tanh(x); }
|
||||
|
||||
bool IsPow2(u32 number) {
|
||||
return (number & (number - 1)) == 0;
|
||||
@@ -276,7 +276,7 @@ namespace J3ML
|
||||
else return PowUInt(base, (u32) exponent);
|
||||
}
|
||||
|
||||
float Pow(float base, float exponent) { return std::powf(base, exponent); }
|
||||
float Pow(float base, float exponent) { return std::pow(base, exponent); }
|
||||
|
||||
float Exp(float exp) { return std::exp(exp); }
|
||||
|
||||
@@ -296,8 +296,8 @@ namespace J3ML
|
||||
return Log(10, value);
|
||||
}
|
||||
|
||||
float Ceil(float f) { return std::ceilf(f); }
|
||||
int CeilInt(float f) { return (int)std::ceilf(f);}
|
||||
float Ceil(float f) { return std::ceil(f); }
|
||||
int CeilInt(float f) { return (int)std::ceil(f);}
|
||||
|
||||
float Floor(float x) { return floorf(x); }
|
||||
|
||||
|
Reference in New Issue
Block a user