Lines Matching refs:ival
71 int16_t ival = clamp16_from_float(f / (1 << 15)); in testClamp16() local
74 ALOGV("clamp16_from_float(%f) = %d\n", f, ival); in testClamp16()
76 EXPECT_EQ(lim16pos, ival); in testClamp16()
78 EXPECT_EQ(lim16neg, ival); in testClamp16()
83 int ival2 = clamp16_from_float(float_from_i16(ival)); in testClamp16()
84 int diff = abs(ival - ival2); in testClamp16()
91 int32_t ival = clamp24_from_float(f / (1 << 23)); in testClamp24() local
94 ALOGV("clamp24_from_float(%f) = %d\n", f, ival); in testClamp24()
96 EXPECT_EQ(lim24pos, ival); in testClamp24()
98 EXPECT_EQ(lim24neg, ival); in testClamp24()
103 int ival2 = clamp24_from_float(float_from_q8_23(ival)); in testClamp24()
104 int diff = abs(ival - ival2); in testClamp24()