32 #if HAVE_MIPSFPU && HAVE_INLINE_ASM
38 #define atanf(x) ((float)atan(x))
43 #define atan2f(y, x) ((float)atan2(y, x))
48 #define powf(x, y) ((float)pow(x, y))
54 return x < 0 ? -pow(-x, 1.0 / 3.0) : pow(x, 1.0 / 3.0);
61 return x < 0 ? -
powf(-x, 1.0 / 3.0) :
powf(x, 1.0 / 3.0);
67 #define cosf(x) ((float)cos(x))
72 #define expf(x) ((float)exp(x))
77 #define exp2(x) exp((x) * 0.693147180559945)
82 #define exp2f(x) ((float)exp2(x))
91 return x > y ? y : (x == x ? x :
y);
99 if ((v & 0x7f800000) != 0x7f800000)
101 return !(v & 0x007fffff);
109 if ((v & 0x7f800000) != 0x7f800000)
111 return v & 0x007fffff;
117 #define ldexpf(x, exp) ((float)ldexp(x, exp))
122 #define llrint(x) ((long long)rint(x))
127 #define llrintf(x) ((long long)rint(x))
132 #define log2(x) (log(x) * 1.44269504088896340736)
137 #define log2f(x) ((float)log2(x))
142 #define log10f(x) ((float)log10(x))
147 #define sinf(x) ((float)sin(x))
151 static inline double rint(
double x)
153 return x >= 0 ? floor(x + 0.5) : ceil(x - 0.5);
167 return (
int)(
rint(x));
174 return (x > 0) ? floor(x + 0.5) : ceil(x - 0.5);
181 return (x > 0) ? floor(x + 0.5) : ceil(x - 0.5);
188 return (x > 0) ? floor(x) : ceil(x);
195 return (x > 0) ? floor(x) : ceil(x);