FFmpeg
|
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)) |
#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)) |
#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 double | cbrt (double x) |
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)) |
Referenced by calc_bark(), and ps_tableinit().
Referenced by ps_tableinit().
#define cosf | ( | x | ) | ((float)cos(x)) |
Referenced by lsf2lsp(), and ps_tableinit().
#define expf | ( | x | ) | ((float)exp(x)) |
Referenced by decode_init(), and synth_block_fcb_acb().
#define exp2 | ( | x | ) | exp((x) * 0.693147180559945) |
Referenced by decode_init_static(), imc_decode_level_coefficients(), MPA_encode_init(), psy_3gpp_init(), and value_string().
#define exp2f | ( | x | ) | ((float)exp2(x)) |
Referenced by calc_reduction_3gpp(), ff_amr_set_fixed_gain(), and sbr_dequant().
#define ldexpf | ( | x, | |
exp | |||
) | ((float)ldexp(x, exp)) |
Referenced by get_float().
#define llrint | ( | x | ) | ((long long)rint(x)) |
Referenced by avutil_version(), build_filter(), ff_audio_mix_set_matrix(), ff_rfps_add_frame(), set(), and write_number().
#define llrintf | ( | x | ) | ((long long)rint(x)) |
#define log2 | ( | x | ) | (log(x) * 1.44269504088896340736) |
Referenced by decode_ppc(), draw_mandelbrot(), filter_frame(), find_best_state(), print_report(), qscale2qlog(), and value_string().
#define log2f | ( | x | ) | ((float)log2(x)) |
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)) |
Referenced by ff_amr_set_fixed_gain(), and ff_sipr_decode_frame_16k().
#define sinf | ( | x | ) | ((float)sin(x)) |
Referenced by ff_sine_window_init(), and ps_tableinit().
#define atanf | ( | x | ) | ((float)atan(x)) |
#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)) |
|
static |
Definition at line 52 of file libm.h.
Referenced by fade_gain(), and plot_spectrum_column().
|
static |
Definition at line 59 of file libm.h.
Referenced by decode_spectrum_and_dequant(), and quantize_and_encode_band_cost_template().
|
static |
Definition at line 86 of file libm.h.
Referenced by av_dbl2ext(), eval_expr(), and get_exponent_dynamic().
|
static |
Definition at line 96 of file libm.h.
Referenced by av_d2q(), av_expr_parse_and_eval(), compute_target_delay(), config_props(), double2int64str(), eval_expr(), event_loop(), filter_frame(), get_qscale(), get_video_frame(), normalize_double(), normalize_xy(), sdl_audio_callback(), select_frame(), set_volume(), sync_clock_to_slave(), synchronize_audio(), thp_probe(), video_refresh(), and vp_duration().
|
inlinestatic |
Definition at line 141 of file libm.h.
Referenced by calculate_display_rect(), compute_sin_and_cos(), idct248_ref(), lrint(), lrintf(), plot_spectrum_column(), qscale2qlog(), and swri_noise_shaping_TMPL().
|
static |
Definition at line 148 of file libm.h.
Referenced by calc_input_response(), do_video_out(), encode_block(), ff_audio_mix_set_matrix(), fill_xyztables(), precalc_coefs(), and set().
|
static |
|
static |
Definition at line 162 of file libm.h.
Referenced by config_output(), dequant(), encode_init(), ff_merge_channel_layouts(), fill_from_cache(), filter_frame(), normalize_double(), and vpx_init().
|
static |
Definition at line 169 of file libm.h.
Referenced by xvid_correct_framerate().
|
static |
Definition at line 176 of file libm.h.
Referenced by eval_expr().
|
static |
Definition at line 183 of file libm.h.
Referenced by amrnb_decode_frame(), and amrwb_decode_frame().