Replacements for frequently missing libm functions. More...
Go to the source code of this file.
Macros | |
#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) |
Replacements for frequently missing libm functions.
Definition in file libm.h.
#define exp2f | ( | x | ) | ((float)exp2(x)) |
Definition at line 38 of file libm.h.
Referenced by ff_amr_set_fixed_gain(), and sbr_dequant().
#define llrint | ( | x | ) | ((long long)rint(x)) |
Definition at line 43 of file libm.h.
Referenced by av_audio_convert(), mpegaudio_tableinit(), and write_number().
#define llrintf | ( | x | ) | ((long long)rint(x)) |
Definition at line 48 of file libm.h.
Referenced by av_audio_convert().
#define log2 | ( | x | ) | (log(x) * 1.44269504088896340736) |
Definition at line 53 of file libm.h.
Referenced by find_best_state().
#define log2f | ( | x | ) | ((float)log2(x)) |
Definition at line 58 of file libm.h.
Referenced by calc_pe_3gpp(), coef2maxsf(), coef2minsf(), 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().
|
static |
Definition at line 62 of file libm.h.
Referenced by av_audio_convert(), calc_input_response(), encode_block(), PrecalcCoefs(), and printval().
|
static |
Definition at line 69 of file libm.h.
Referenced by av_audio_convert(), av_resample(), avformat_find_stream_info(), avi_write_header(), biquad_init_coeffs(), build_basis(), build_filter(), do_audio_out(), do_video_out(), ff_adx_calculate_coeffs(), ff_faandct(), ff_faandct248(), ff_xvid_rate_control_init(), float_to_fixed24_c(), float_to_int16_one(), init_qexp(), make_bands(), p8idct(), parse_ffconfig(), print_fps(), print_report(), quantize_lpc_coefs(), sbr_make_f_derived(), and sbr_make_f_master().
|
static |
|
static |
|
static |
Definition at line 90 of file libm.h.
Referenced by eval_expr().
|
static |
Definition at line 97 of file libm.h.
Referenced by amrnb_decode_frame(), and amrwb_decode_frame().