libavutil/libm.h File Reference

Replacements for frequently missing libm functions. More...

#include <math.h>
#include "config.h"
#include "attributes.h"
#include "intfloat.h"

Go to the source code of this file.

Defines

#define exp2(x)   exp((x) * 0.693147180559945)
#define exp2f(x)   ((float)exp2(x))
#define llrint(x)   ((long long)rint(x))
#define llrintf(x)   ((long long)rint(x))
#define log2(x)   (log(x) * 1.44269504088896340736)
#define log2f(x)   ((float)log2(x))

Functions

static av_always_inline float cbrtf (float x)
static av_always_inline
av_const int 
isinf (float x)
static av_always_inline
av_const int 
isnan (float x)
static double rint (double x)
static av_always_inline
av_const long int 
lrint (double x)
static av_always_inline
av_const long int 
lrintf (float x)
static av_always_inline
av_const double 
round (double x)
static av_always_inline
av_const float 
roundf (float x)
static av_always_inline
av_const double 
trunc (double x)
static av_always_inline
av_const float 
truncf (float x)


Detailed Description

Replacements for frequently missing libm functions.

Definition in file libm.h.


Define Documentation

#define exp2 (  )     exp((x) * 0.693147180559945)

#define exp2f (  )     ((float)exp2(x))

Definition at line 50 of file libm.h.

Referenced by atrac3_decode_init(), calc_reduction_3gpp(), ff_amr_set_fixed_gain(), and sbr_dequant().

#define llrint (  )     ((long long)rint(x))

Definition at line 75 of file libm.h.

Referenced by av_audio_convert(), avresample_set_matrix(), mpegaudio_tableinit(), and write_number().

#define llrintf (  )     ((long long)rint(x))

Definition at line 80 of file libm.h.

Referenced by av_audio_convert().

#define log2 (  )     (log(x) * 1.44269504088896340736)

Definition at line 85 of file libm.h.

Referenced by draw_mandelbrot(), find_best_state(), print_report(), qscale2qlog(), and value_string().

#define log2f (  )     ((float)log2(x))


Function Documentation

static av_always_inline float cbrtf ( float  x  )  [static]

static av_always_inline av_const int isinf ( float  x  )  [static]

Definition at line 54 of file libm.h.

Referenced by av_d2q(), eval_expr(), and get_exponent_dynamic().

static av_always_inline av_const int isnan ( float  x  )  [static]

static av_always_inline av_const long int lrint ( double  x  )  [static]

static av_always_inline av_const long int lrintf ( float  x  )  [static]

Definition at line 108 of file libm.h.

static double rint ( double  x  )  [inline, static]

static av_always_inline av_const double round ( double  x  )  [static]

Definition at line 115 of file libm.h.

Referenced by dequant(), fill_from_cache(), normalize_double(), and vp8_init().

static av_always_inline av_const float roundf ( float  x  )  [static]

Definition at line 122 of file libm.h.

Referenced by xvid_correct_framerate().

static av_always_inline av_const double trunc ( double  x  )  [static]

Definition at line 129 of file libm.h.

Referenced by eval_expr().

static av_always_inline av_const float truncf ( float  x  )  [static]

Definition at line 136 of file libm.h.

Referenced by amrnb_decode_frame(), and amrwb_decode_frame().


Generated on Fri Oct 26 02:50:12 2012 for FFmpeg by  doxygen 1.5.8