Home
last modified time | relevance | path

Searched refs:uval (Results 1 – 2 of 2) sorted by relevance

/system/media/audio_utils/include/audio_utils/
Dprimitives.h1013 static inline float float_from_u4_28(uint32_t uval) in float_from_u4_28() argument
1017 return uval * scale; in float_from_u4_28()
1025 static inline float float_from_u4_12(uint16_t uval) in float_from_u4_12() argument
1029 return uval * scale; in float_from_u4_12()
1105 static inline float float_from_u8(uint8_t uval) in float_from_u8() argument
1109 return ((int)uval - 128) * scale; in float_from_u8()
/system/media/audio_utils/tests/
Dprimitives_tests.cpp47 uint8_t uval = clamp8_from_float((f - 128) / (1 << 7)); in testClamp8() local
51 EXPECT_EQ(lim8pos, uval); in testClamp8()
53 EXPECT_EQ(lim8neg, uval); in testClamp8()
58 uint8_t uval2 = clamp8_from_float(float_from_u8(uval)); in testClamp8()
59 int diff = abs(uval - uval2); in testClamp8()