Searched refs:u_intN_max (Results 1 – 5 of 5) sorted by relevance
/hardware/google/gfxstream/guest/mesa/src/util/tests/ |
D | int_min_max.cpp | 51 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()
|
/hardware/google/gfxstream/guest/mesa/src/util/format/ |
D | format_utils.h | 51 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 …]
|
/hardware/google/gfxstream/guest/mesa/src/util/ |
D | bitpack_helpers.h | 85 const int64_t max = u_intN_max(bits); in util_bitpack_sint() 129 const float max = u_intN_max(total_bits) / factor; in util_bitpack_sfixed() 149 const float max = u_intN_max(total_bits) / factor; in util_bitpack_sfixed_clamp()
|
D | macros.h | 400 u_intN_max(unsigned bit_size) in u_intN_max() function 413 return (-u_intN_max(bit_size)) - 1; in u_intN_min()
|
D | timespec.h | 84 u_intN_max(sizeof(time_t) * 8)))
|