Home
last modified time | relevance | path

Searched refs:frac_bits (Results 1 – 10 of 10) sorted by relevance

/third_party/ffmpeg/libavutil/
Dsoftfloat.h185 static inline av_const SoftFloat av_int2sf(int v, int frac_bits){ in av_int2sf() argument
191 return av_normalize_sf(av_normalize1_sf((SoftFloat){v, ONE_BITS + 1 - frac_bits + exp_offset})); in av_int2sf()
198 static inline av_const int av_sf2int(SoftFloat v, int frac_bits){ in av_sf2int() argument
199 v.exp += frac_bits - (ONE_BITS + 1); in av_sf2int()
/third_party/mesa3d/src/util/
Du_math.h743 util_unsigned_fixed(float value, unsigned frac_bits) in util_unsigned_fixed() argument
745 return value < 0 ? 0 : (uint32_t)(value * (1<<frac_bits)); in util_unsigned_fixed()
749 util_signed_fixed(float value, unsigned frac_bits) in util_signed_fixed() argument
751 return (int32_t)(value * (1<<frac_bits)); in util_signed_fixed()
/third_party/mesa3d/src/compiler/nir/
Dnir_lower_double_ops.c323 nir_ssa_def *frac_bits = nir_isub(b, nir_imm_int(b, 52), unbiased_exp); in lower_trunc() local
343 nir_ige(b, frac_bits, nir_imm_int(b, 32)), in lower_trunc()
345 nir_ishl(b, nir_imm_int(b, ~0), frac_bits)); in lower_trunc()
349 nir_ilt(b, frac_bits, nir_imm_int(b, 33)), in lower_trunc()
353 nir_isub(b, frac_bits, nir_imm_int(b, 32)))); in lower_trunc()
/third_party/mesa3d/src/mesa/main/
Dmacros.h229 U_FIXED(float value, uint32_t frac_bits) in U_FIXED() argument
231 value *= (1 << frac_bits); in U_FIXED()
241 S_FIXED(float value, uint32_t frac_bits) in S_FIXED() argument
243 return (int32_t) (value * (1 << frac_bits)); in S_FIXED()
/third_party/ffmpeg/libavcodec/
Dmlpdec.c743 int frac_bits, max_chan; in read_matrix_params() local
745 frac_bits = get_bits(gbp, 4); in read_matrix_params()
754 if (frac_bits > 14) { in read_matrix_params()
767 coeff_val = get_sbits(gbp, frac_bits + 2); in read_matrix_params()
769 s->matrix_coeff[mat][ch] = coeff_val * (1 << (14 - frac_bits)); in read_matrix_params()
/third_party/mesa3d/src/gallium/drivers/r600/
Dr600_pipe_common.h943 static inline int S_FIXED(float value, unsigned frac_bits) in S_FIXED() argument
945 return value * (1 << frac_bits); in S_FIXED()
/third_party/mesa3d/docs/relnotes/
D7.9.1.rst246 - r600: Evergreen has two extra frac_bits for the sampler LOD state.
D7.10.rst1498 - r600g: Evergreen has two extra frac_bits for the sampler LOD state.
1499 - r600: Evergreen has two extra frac_bits for the sampler LOD state.
/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dsi_state.c4516 static inline int S_FIXED(float value, unsigned frac_bits) in S_FIXED() argument
4518 return value * (1 << frac_bits); in S_FIXED()
/third_party/mesa3d/src/amd/vulkan/
Dradv_device.c7249 S_FIXED(float value, unsigned frac_bits) in S_FIXED() argument
7251 return value * (1 << frac_bits); in S_FIXED()