FFmpeg
Macros | Functions
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.

Macros

#define  atanf(x)   ((float)atan(x))
 
#define  atan2f(y, x)   ((float)atan2(y, x))
 
#define  powf(x, y)   ((float)pow(x, y))
 
#define  cosf(x)   ((float)cos(x))
 
#define  expf(x)   ((float)exp(x))
 
#define  exp2(x)   exp((x) * 0.693147180559945)
 
#define  exp2f(x)   ((float)exp2(x))
 
#define  ldexpf(x, exp)   ((float)ldexp(x, exp))
 
#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))
 
#define  log10f(x)   ((float)log10(x))
 
#define  sinf(x)   ((float)sin(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.

Macro Definition Documentation

#define atanf (   x )    ((float)atan(x))

Definition at line 38 of file libm.h.

Referenced by calc_bark(), and ps_tableinit().

#define atan2f (   y,
  x 
)    ((float)atan2(y, x))

Definition at line 43 of file libm.h.

Referenced by ps_tableinit().

#define powf (   x,
  y 
)    ((float)pow(x, y))

Definition at line 48 of file libm.h.

Referenced by ac3_tables_init(), calc_input_response(), calc_reduced_thr_3gpp(), cbrtf(), decode_cce(), and make_bands().

#define cosf (   x )    ((float)cos(x))

Definition at line 60 of file libm.h.

Referenced by lsf2lsp(), and ps_tableinit().

#define expf (   x )    ((float)exp(x))

Definition at line 65 of file libm.h.

Referenced by decode_init(), and synth_block_fcb_acb().

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

Definition at line 70 of file libm.h.

Referenced by decode_init_static(), imc_decode_level_coefficients(), MPA_encode_init(), psy_3gpp_init(), and value_string().

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

Definition at line 75 of file libm.h.

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

#define ldexpf (   x,
  exp 
)    ((float)ldexp(x, exp))

Definition at line 100 of file libm.h.

Referenced by get_float().

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

Definition at line 105 of file libm.h.

Referenced by av_audio_convert(), avformat_find_stream_info(), ff_audio_mix_set_matrix(), mpegaudio_tableinit(), and write_number().

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

Definition at line 110 of file libm.h.

Referenced by av_audio_convert().

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

Definition at line 115 of file libm.h.

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

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

Definition at line 120 of file libm.h.

Referenced by bit_allocation(), calc_pe_3gpp(), coef2maxsf(), coef2minsf(), imc_decode_level_coefficients(), sbr_make_f_derived(), sbr_make_f_master(), search_for_quantizers_anmr(), search_for_quantizers_faac(), search_for_quantizers_fast(), and search_for_quantizers_twoloop().

#define log10f (   x )    ((float)log10(x))

Definition at line 125 of file libm.h.

Referenced by ff_amr_set_fixed_gain(), and ff_sipr_decode_frame_16k().

#define sinf (   x )    ((float)sin(x))

Definition at line 130 of file libm.h.

Referenced by ff_sine_window_init(), and ps_tableinit().

Function Documentation

static av_always_inline float cbrtf ( float  x )
static

Definition at line 52 of file libm.h.

Referenced by cbrt_tableinit(), decode_spectrum_and_dequant(), mpegaudio_tableinit(), and quantize_and_encode_band_cost_template().

static av_always_inline av_const int isinf ( float  x )
static

Definition at line 79 of file libm.h.

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

static av_always_inline av_const int isnan ( float  x )
static

Definition at line 89 of file libm.h.

Referenced by av_d2q(), av_expr_parse_and_eval(), config_props(), double2int64str(), eval_expr(), filter_frame(), get_qscale(), init(), normalize_double(), and select_frame().

static double rint ( double  x )
inlinestatic

Definition at line 134 of file libm.h.

Referenced by calculate_display_rect(), compute_sin_and_cos(), idct248_ref(), lrint(), lrintf(), and qscale2qlog().

static av_always_inline av_const long int lrint ( double  x )
static

Definition at line 141 of file libm.h.

Referenced by av_audio_convert(), calc_input_response(), do_video_out(), encode_block(), ff_audio_mix_set_matrix(), precalc_coefs(), printval(), and set().

static av_always_inline av_const long int lrintf ( float  x )
static

Definition at line 148 of file libm.h.

static av_always_inline av_const double round ( double  x )
static

Definition at line 155 of file libm.h.

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

static av_always_inline av_const float roundf ( float  x )
static

Definition at line 162 of file libm.h.

Referenced by xvid_correct_framerate().

static av_always_inline av_const double trunc ( double  x )
static

Definition at line 169 of file libm.h.

Referenced by eval_expr().

static av_always_inline av_const float truncf ( float  x )
static

Definition at line 176 of file libm.h.

Referenced by amrnb_decode_frame(), and amrwb_decode_frame().


Generated on Sat May 25 2013 03:59:04 for FFmpeg by   doxygen 1.8.2

AltStyle によって変換されたページ (->オリジナル) /