34 #define atanf(x) ((float)atan(x)) 39 #define atan2f(y, x) ((float)atan2(y, x)) 44 #define powf(x, y) ((float)pow(x, y)) 50 return x < 0 ? -
powf(-x, 1.0 / 3.0) :
powf(x, 1.0 / 3.0);
56 #define cosf(x) ((float)cos(x)) 61 #define expf(x) ((float)exp(x)) 66 #define exp2(x) exp((x) * 0.693147180559945) 71 #define exp2f(x) ((float)exp2(x)) 78 if ((v & 0x7f800000) != 0x7f800000)
80 return !(v & 0x007fffff);
88 if ((v & 0x7f800000) != 0x7f800000)
90 return v & 0x007fffff;
96 #define ldexpf(x, exp) ((float)ldexp(x, exp)) 101 #define llrint(x) ((long long)rint(x)) 106 #define llrintf(x) ((long long)rint(x)) 111 #define log2(x) (log(x) * 1.44269504088896340736) 116 #define log2f(x) ((float)log2(x)) 121 #define log10f(x) ((float)log10(x)) 126 #define sinf(x) ((float)sin(x)) 130 static inline double rint(
double x)
132 return x >= 0 ? floor(x + 0.5) : ceil(x - 0.5);
146 return (
int)(
rint(x));
153 return (x > 0) ? floor(x + 0.5) : ceil(x - 0.5);
160 return (x > 0) ? floor(x + 0.5) : ceil(x - 0.5);
167 return (x > 0) ? floor(x) : ceil(x);
174 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 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)
static av_always_inline av_const int isinf(float x)