Home
last modified time | relevance | path

Searched refs:u_intN_max (Results 1 – 6 of 6) sorted by relevance

/third_party/mesa3d/src/util/format/
Dformat_utils.h51 if (x <= -u_intN_max(src_bits)) in _mesa_snorm_to_float()
54 return x * (1.0f / (float)u_intN_max(src_bits)); in _mesa_snorm_to_float()
119 return -u_intN_max(dst_bits); in _mesa_float_to_snorm()
121 return u_intN_max(dst_bits); in _mesa_float_to_snorm()
123 return _mesa_lroundevenf(x * u_intN_max(dst_bits)); in _mesa_float_to_snorm()
141 if (x < -u_intN_max(src_bits)) in _mesa_snorm_to_snorm()
142 return -u_intN_max(dst_bits); in _mesa_snorm_to_snorm()
158 return MIN2(src, (unsigned)u_intN_max(dst_size)); in _mesa_unsigned_to_signed()
164 return CLAMP(src, u_intN_min(dst_size), u_intN_max(dst_size)); in _mesa_signed_to_signed()
186 if (src < (float)(-u_intN_max(dst_bits))) in _mesa_float_to_signed()
[all …]
/third_party/mesa3d/src/util/tests/
Dint_min_max.cpp51 TEST(int_min_max, u_intN_max) in TEST() argument
53 EXPECT_EQ(INT64_MAX, u_intN_max(64)); in TEST()
54 EXPECT_EQ(INT32_MAX, u_intN_max(32)); in TEST()
55 EXPECT_EQ(INT16_MAX, u_intN_max(16)); in TEST()
56 EXPECT_EQ(INT8_MAX, u_intN_max(8)); in TEST()
58 EXPECT_EQ(MESA_INT24_MAX, u_intN_max(24)); in TEST()
59 EXPECT_EQ(MESA_INT12_MAX, u_intN_max(12)); in TEST()
60 EXPECT_EQ(MESA_INT10_MAX, u_intN_max(10)); in TEST()
/third_party/mesa3d/src/util/
Dmacros.h390 u_intN_max(unsigned bit_size) in u_intN_max() function
403 return (-u_intN_max(bit_size)) - 1; in u_intN_min()
Dtimespec.h84 u_intN_max(sizeof(time_t) * 8)))
/third_party/mesa3d/src/compiler/nir/
Dnir_lower_bit_size.c89 const int64_t int_max = u_intN_max(dst_bit_size); in lower_alu_instr()
/third_party/mesa3d/src/intel/isl/
Disl_format.c1245 u_intN_max(layout->bits)); in pack_channel()