Libav
|
Replacements for frequently missing libm functions. More...
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) |
Replacements for frequently missing libm functions.
Definition in file libm.h.
#define atanf | ( | x | ) | ((float)atan(x)) |
Definition at line 34 of file libm.h.
Referenced by calc_bark(), and ps_tableinit().
#define atan2f | ( | y, | |
x | |||
) | ((float)atan2(y, x)) |
Definition at line 39 of file libm.h.
Referenced by ps_tableinit().
#define powf | ( | x, | |
y | |||
) | ((float)pow(x, y)) |
Definition at line 44 of file libm.h.
Referenced by ac3_tables_init(), calc_input_response(), calc_reduced_thr_3gpp(), calc_reduction_3gpp(), cbrt_tableinit(), cbrtf(), decode_audio_block(), decode_cce(), decode_ppc(), ff_atrac_init_gain_compensation(), imc_decode_level_coefficients_raw(), make_bands(), and mpegaudio_tableinit().
#define cosf | ( | x | ) | ((float)cos(x)) |
Definition at line 56 of file libm.h.
Referenced by lsf2lsp(), and ps_tableinit().
#define expf | ( | x | ) | ((float)exp(x)) |
Definition at line 61 of file libm.h.
Referenced by decode_init(), get_volume(), and synth_block_fcb_acb().
#define exp2f | ( | x | ) | ((float)exp2(x)) |
Definition at line 71 of file libm.h.
Referenced by ff_amr_set_fixed_gain(), and sbr_dequant().
#define ldexpf | ( | x, | |
exp | |||
) | ((float)ldexp(x, exp)) |
Definition at line 96 of file libm.h.
Referenced by get_float().
#define llrint | ( | x | ) | ((long long)rint(x)) |
Definition at line 101 of file libm.h.
Referenced by ff_audio_mix_set_matrix(), and write_number().
#define log2 | ( | x | ) | (log(x) * 1.44269504088896340736) |
Definition at line 111 of file libm.h.
Referenced by decode_ppc(), find_best_state(), print_report(), and value_string().
#define log2f | ( | x | ) | ((float)log2(x)) |
Definition at line 116 of file libm.h.
Referenced by bit_allocation(), calc_pe_3gpp(), coef2maxsf(), coef2minsf(), imc_decode_level_coefficients(), imc_decode_level_coefficients_raw(), 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 121 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 126 of file libm.h.
Referenced by ff_sine_window_init(), and ps_tableinit().
|
static |
Definition at line 48 of file libm.h.
Referenced by decode_spectrum_and_dequant(), and quantize_and_encode_band_cost_template().
|
static |
Definition at line 75 of file libm.h.
Referenced by av_d2q(), eval_expr(), and get_exponent_dynamic().
|
static |
Definition at line 85 of file libm.h.
Referenced by av_d2q(), av_expr_parse_and_eval(), config_props(), eval_expr(), filter_frame(), get_qscale(), normalize_double(), and select_frame().
|
inlinestatic |
Definition at line 130 of file libm.h.
Referenced by idct248_ref(), lrint(), lrintf(), and video_image_display().
|
static |
Definition at line 137 of file libm.h.
Referenced by calc_input_response(), encode_block(), ff_audio_mix_set_matrix(), and precalc_coefs().
|
static |
Definition at line 144 of file libm.h.
Referenced by avi_write_header(), biquad_init_coeffs(), build_basis(), config_input(), ff_adx_calculate_coeffs(), ff_dither_alloc(), ff_faandct(), ff_faandct248(), ff_xvid_rate_control_init(), float_to_fixed24_c(), float_to_int16_one(), jpeg2000_decode_tile(), make_bands(), mix_2_to_1_s16p_flt_c(), p8idct(), parse_ffconfig(), print_fps(), print_report(), quantize_c(), quantize_lpc_coefs(), quantize_triangular_ns(), sbr_make_f_derived(), and sbr_make_f_master().
|
static |
Definition at line 151 of file libm.h.
Referenced by dequant(), ffv1_encode_init(), normalize_double(), and vpx_init().
|
static |
Definition at line 158 of file libm.h.
Referenced by xvid_correct_framerate().
|
static |
Definition at line 165 of file libm.h.
Referenced by eval_expr().
|
static |
Definition at line 172 of file libm.h.
Referenced by amrnb_decode_frame(), and amrwb_decode_frame().