Searched refs:u_uintN_max (Results 1 – 8 of 8) sorted by relevance
/third_party/mesa3d/src/util/format/ |
D | format_utils.h | 39 (((X) * (int)(u_uintN_max(DST_BITS) / u_uintN_max(SRC_BITS))) + \ 45 return x * (1.0f / (float)u_uintN_max(src_bits)); in _mesa_unorm_to_float() 75 return u_uintN_max(dst_bits); in _mesa_float_to_unorm() 77 return _mesa_i64roundevenf(x * u_uintN_max(dst_bits)); in _mesa_float_to_unorm() 96 return (((uint64_t) x * u_uintN_max(dst_bits) + src_half) / in _mesa_unorm_to_unorm() 97 u_uintN_max(src_bits)); in _mesa_unorm_to_unorm() 99 return (x * u_uintN_max(dst_bits) + src_half) / u_uintN_max(src_bits); in _mesa_unorm_to_unorm() 152 return MIN2(src, u_uintN_max(dst_size)); in _mesa_unsigned_to_unsigned() 170 return CLAMP(src, 0, u_uintN_max(dst_size)); in _mesa_signed_to_unsigned() 178 if (src > (float)u_uintN_max(dst_bits)) in _mesa_float_to_unsigned() [all …]
|
/third_party/mesa3d/src/util/tests/ |
D | int_min_max.cpp | 63 TEST(int_min_max, u_uintN_max) in TEST() argument 65 EXPECT_EQ(UINT64_MAX, u_uintN_max(64)); in TEST() 66 EXPECT_EQ(UINT32_MAX, u_uintN_max(32)); in TEST() 67 EXPECT_EQ(UINT16_MAX, u_uintN_max(16)); in TEST() 68 EXPECT_EQ(UINT8_MAX, u_uintN_max(8)); in TEST() 70 EXPECT_EQ(MESA_UINT24_MAX, u_uintN_max(24)); in TEST() 71 EXPECT_EQ(MESA_UINT12_MAX, u_uintN_max(12)); in TEST() 72 EXPECT_EQ(MESA_UINT10_MAX, u_uintN_max(10)); in TEST()
|
/third_party/mesa3d/src/util/tests/fast_idiv_by_const/ |
D | fast_idiv_by_const_test.cpp | 82 return (sum >> num_bits) ? u_uintN_max(num_bits) : sum; in uadd_sat() 201 return u_uintN_max(bits) - (rand() % 16); in rand_uint()
|
/third_party/mesa3d/src/util/ |
D | fast_idiv_by_const.c | 69 result.multiplier = u_uintN_max(UINT_BITS); in util_compute_fast_udiv_info()
|
D | macros.h | 422 u_uintN_max(unsigned bit_size) in u_uintN_max() function
|
/third_party/mesa3d/src/compiler/nir/ |
D | nir_lower_bit_size.c | 96 const uint64_t uint_max = u_uintN_max(dst_bit_size); in lower_alu_instr()
|
D | nir_search.c | 371 uint64_t mask = u_uintN_max(bit_size); in match_value()
|
/third_party/mesa3d/src/intel/isl/ |
D | isl_format.c | 1183 packed = MIN(value->u32[i], u_uintN_max(layout->bits)); in pack_channel() 1197 data_out[dword] |= (packed & u_uintN_max(layout->bits)) << bit; in pack_channel() 1259 uint32_t packed = (data_in[dword] >> bit) & u_uintN_max(layout->bits); in unpack_channel()
|