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.h714 static inline float float_from_u4_28(uint32_t uval) in float_from_u4_28() argument
718 return uval * scale; in float_from_u4_28()
725 static inline float float_from_u4_12(uint16_t uval) in float_from_u4_12() argument
729 return uval * scale; in float_from_u4_12()
801 static inline float float_from_u8(uint8_t uval) in float_from_u8() argument
805 return ((int)uval - 128) * scale; in float_from_u8()
/system/media/audio_utils/tests/
Dprimitives_tests.cpp40 uint8_t uval = clamp8_from_float((f - 128) / (1 << 7)); in testClamp8() local
43 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()