FFmpeg  4.0
Macros | Functions | Variables
intmath.h File Reference
#include <stdint.h>
#include "config.h"
#include "attributes.h"

Go to the source code of this file.

Macros

#define ff_log2   ff_log2_c
 
#define ff_log2_16bit   ff_log2_16bit_c
 
#define av_log2   ff_log2
 
#define av_log2_16bit   ff_log2_16bit
 
#define ff_ctz   ff_ctz_c
 
#define ff_ctzll   ff_ctzll_c
 
#define ff_clz   ff_clz_c
 
#define av_parity   __builtin_parity
 

Functions

static av_always_inline av_const int ff_log2_c (unsigned int v)
 
static av_always_inline av_const int ff_log2_16bit_c (unsigned int v)
 
static av_always_inline av_const int ff_ctz_c (int v)
 Trailing zero bit count. More...
 
static av_always_inline av_const int ff_ctzll_c (long long v)
 
static av_always_inline av_const unsigned ff_clz_c (unsigned x)
 

Variables

const uint8_t ff_log2_tab [256]
 

Macro Definition Documentation

◆ ff_log2

#define ff_log2   ff_log2_c

◆ ff_log2_16bit

#define ff_log2_16bit   ff_log2_16bit_c

Definition at line 69 of file intmath.h.

Referenced by av_log2_16bit().

◆ av_log2

#define av_log2   ff_log2

Definition at line 83 of file intmath.h.

Referenced by ac3_extract_exponents_c(), ac_get(), alac_entropy_coder(), arith2_get_number(), arith2_get_prob(), audio_open(), av_bprint_utf8(), av_normalize_sf(), av_q2intfloat(), cbs_write_se_golomb(), cbs_write_ue_golomb(), clv_decode_init(), compute_scale_factors(), count_hq_slice(), D(), decode_ac_coeffs(), decode_array_0000(), decode_cdlms(), decode_channel(), decode_channel_residues(), decode_frame(), decode_init(), decode_lowdelay_slice(), decode_mclms(), decode_q_branch(), decode_slice(), decode_spectrum_and_dequant(), decode_subframe(), decode_subframe_length(), decode_subframe_lpc(), decode_tones_frequency(), decode_uncompressed(), decode_vlc_codeword(), decode_vol_header(), ebml_id_size(), encode_cblk(), encode_codeword(), encode_frame(), encode_init(), encode_packet(), encode_q_branch(), encode_q_branch2(), encode_residual_ch(), encode_slice(), encode_subband(), encode_subband_c0run(), encode_vlc_codeword(), escape124_decode_frame(), estimate_vlc(), ff_celt_decode_frame(), ff_dca_core_dequantize(), ff_dca_downmix_to_stereo_fixed(), ff_dca_downmix_to_stereo_float(), ff_dcaadpcm_subband_analysis(), ff_eac3_parse_header(), ff_g723_1_normalize_bits(), ff_g729_adaptive_gain_control(), ff_jpegls_init_state(), ff_log2_q15(), ff_mpeg1_encode_init(), ff_mpeg4_decode_studio_slice_header(), ff_mpeg4_decode_video_packet_header(), ff_mpeg4_encode_video_packet_header(), ff_mpv_encode_init(), ff_wma_init(), find_optimal_param(), find_slice_quant(), fps_umf2avr(), gainc_loc_mode0(), generate_noise(), get_block_bits(), get_level_prefix(), get_max_p_order(), get_rac_count(), get_se_golomb(), get_tail(), get_tilt_comp(), get_ue_golomb(), get_ue_golomb_long(), get_ur_golomb(), get_ur_golomb_jpegls(), headroom(), imdct_and_window(), init_cavlc_level_tab(), init_cook_mlt(), init_lengths(), init_mdct_win(), init_mv_penalty_and_fcode(), init_quantization(), initFilter(), is_ebml_id_valid(), jpeg2000_decode_packet(), klv_ber_length(), klv_encode_ber_length(), lag_read_prob_header(), long_term_filter(), main(), merge_superframe(), mp_decode_init(), mpeg4_is_resync(), normalize_samples(), number_sbits(), opus_rc_tell(), opus_rc_tell_frac(), parse_setup_header(), pnm_decode_frame(), pps(), print_report(), print_stats(), probe_codec(), prores_encode_picture(), put_symbol(), put_symbol_inline(), qdm2_decode_init(), qdmc_decode_init(), quantize_and_encode_band_cost_template(), read_diff_float_data(), read_header(), read_huffman_tree(), read_map(), reap_filters(), ref_pic_lists_modification(), rice_decompress(), rv20_decode_picture_header(), rv30_parse_slice_header(), set_ue_golomb(), set_ue_golomb_long(), shorten_decode_frame(), slice_header(), slice_segment_header(), softfloat_reciprocal(), svq3_decode_slice_header(), unpack_coeffs(), vaapi_encode_h264_init_sequence_params(), vc2_encode_init(), very_broken_op(), vpx_init(), wma_decode_block(), wmapro_window(), wp_log2(), write_index(), wv_get_value_float(), and yae_reset().

◆ av_log2_16bit

#define av_log2_16bit   ff_log2_16bit

Function Documentation

◆ ff_log2_c()

static av_always_inline av_const int ff_log2_c ( unsigned int  v)
static

Definition at line 51 of file intmath.h.

◆ ff_log2_16bit_c()

static av_always_inline av_const int ff_log2_16bit_c ( unsigned int  v)
static

Definition at line 70 of file intmath.h.

Variable Documentation

◆ ff_log2_tab

const uint8_t ff_log2_tab[256]