Searched refs:uval (Results 1 – 2 of 2) sorted by relevance
801 static inline float float_from_u4_28(uint32_t uval) in float_from_u4_28() argument805 return uval * scale; in float_from_u4_28()813 static inline float float_from_u4_12(uint16_t uval) in float_from_u4_12() argument817 return uval * scale; in float_from_u4_12()893 static inline float float_from_u8(uint8_t uval) in float_from_u8() argument897 return ((int)uval - 128) * scale; in float_from_u8()
40 uint8_t uval = clamp8_from_float((f - 128) / (1 << 7)); in testClamp8() local43 ALOGV("clamp8_from_float(%f) = %u\n", f, uval); in testClamp8()45 EXPECT_EQ(lim8pos, uval); in testClamp8()47 EXPECT_EQ(lim8neg, uval); in testClamp8()52 uint8_t uval2 = clamp8_from_float(float_from_u8(uval)); in testClamp8()53 int diff = abs(uval - uval2); in testClamp8()