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)) 89 if ((v & 0x7f800000) != 0x7f800000)
91 return !(v & 0x007fffff);
99 if ((v & 0x7f800000) != 0x7f800000)
101 return v & 0x007fffff;
107 #define ldexpf(x, exp) ((float)ldexp(x, exp)) 112 #define llrint(x) ((long long)rint(x)) 117 #define llrintf(x) ((long long)rint(x)) 122 #define log2(x) (log(x) * 1.44269504088896340736) 127 #define log2f(x) ((float)log2(x)) 132 #define log10f(x) ((float)log10(x)) 137 #define sinf(x) ((float)sin(x)) 143 return x >= 0 ? floor(x + 0.5) : ceil(x - 0.5);
157 return (
int)(
rint(x));
164 return (x > 0) ? floor(x + 0.5) : ceil(x - 0.5);
171 return (x > 0) ? floor(x + 0.5) : ceil(x - 0.5);
178 return (x > 0) ? floor(x) : ceil(x);
185 return (x > 0) ? floor(x) : ceil(x);
static double rint(double x)
Macro definitions for various function/variable attributes.
static av_always_inline av_const int isnan(float x)
static av_always_inline double cbrt(double x)
static av_always_inline av_const double round(double x)
static av_always_inline av_const double trunc(double x)
static av_always_inline av_const long int lrintf(float x)
static av_always_inline av_const float truncf(float x)
static av_always_inline float cbrtf(float x)
static av_always_inline av_const long int lrint(double x)
static av_always_inline uint32_t av_float2int(float f)
Reinterpret a float as a 32-bit integer.
static av_always_inline av_const float roundf(float x)
MIPS optimization for some libm functions.
static av_always_inline av_const int isinf(float x)