libavutil/libm.h File Reference

Replacements for frequently missing libm functions. More...

#include <math.h>
#include "config.h"
#include "attributes.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
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)

Definition at line 33 of file libm.h.

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

Definition at line 38 of file libm.h.

Referenced by ff_amr_set_fixed_gain(), and sbr_dequant().

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

Definition at line 43 of file libm.h.

Referenced by av_audio_convert(), av_set_number2(), and mpegaudio_tableinit().

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

Definition at line 48 of file libm.h.

Referenced by av_audio_convert().

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

Definition at line 53 of file libm.h.

Referenced by find_best_state().

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


Function Documentation

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

Definition at line 62 of file libm.h.

Referenced by av_audio_convert(), calc_input_response(), encode_block(), PrecalcCoefs(), and printval().

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

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

Definition at line 76 of file libm.h.

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

Definition at line 83 of file libm.h.

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

Definition at line 90 of file libm.h.

Referenced by eval_expr().

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

Definition at line 97 of file libm.h.

Referenced by amrnb_decode_frame(), and amrwb_decode_frame().


Generated on Fri Oct 26 02:38:21 2012 for FFmpeg by  doxygen 1.5.8