Home
last modified time | relevance | path

Searched refs:clamp8_from_float (Results 1 – 3 of 3) sorted by relevance

/system/media/audio_utils/tests/
Dprimitives_tests.cpp40 uint8_t uval = clamp8_from_float((f - 128) / (1 << 7)); in testClamp8()
52 uint8_t uval2 = clamp8_from_float(float_from_u8(uval)); in testClamp8()
174 EXPECT_EQ(0, clamp8_from_float(-INFINITY)); in TEST()
175 EXPECT_EQ(255, clamp8_from_float(INFINITY)); in TEST()
/system/media/audio_utils/include/audio_utils/
Dprimitives.h560 static inline uint8_t clamp8_from_float(float f) in clamp8_from_float() function
/system/media/audio_utils/
Dprimitives.c54 *dst++ = clamp8_from_float(*src++); in memcpy_to_u8_from_float()