Searched refs:clamp8_from_float (Results 1 – 3 of 3) sorted by relevance
40 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()
560 static inline uint8_t clamp8_from_float(float f) in clamp8_from_float() function
54 *dst++ = clamp8_from_float(*src++); in memcpy_to_u8_from_float()