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 cbrtf(x)   powf(x, 1.0/3.0)
#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 cbrtf (  )     powf(x, 1.0/3.0)

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

Definition at line 38 of file libm.h.

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

Definition at line 43 of file libm.h.

Referenced by ff_amr_set_fixed_gain(), and sbr_dequant().

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

Definition at line 48 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 53 of file libm.h.

Referenced by av_audio_convert().

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

Definition at line 58 of file libm.h.

Referenced by draw_mandelbrot(), and find_best_state().

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


Function Documentation

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

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 81 of file libm.h.

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

Definition at line 88 of file libm.h.

Referenced by xvid_correct_framerate().

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

Definition at line 95 of file libm.h.

Referenced by eval_expr().

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

Definition at line 102 of file libm.h.

Referenced by amrnb_decode_frame(), and amrwb_decode_frame().


Generated on Fri Oct 26 02:48:03 2012 for FFmpeg by  doxygen 1.5.8