Lines Matching refs:ival
60 int16_t ival = clamp16_from_float(f / (1 << 15)); in testClamp16() local
63 ALOGV("clamp16_from_float(%f) = %d\n", f, ival); in testClamp16()
65 EXPECT_EQ(lim16pos, ival); in testClamp16()
67 EXPECT_EQ(lim16neg, ival); in testClamp16()
72 int ival2 = clamp16_from_float(float_from_i16(ival)); in testClamp16()
73 int diff = abs(ival - ival2); in testClamp16()
80 int32_t ival = clamp24_from_float(f / (1 << 23)); in testClamp24() local
83 ALOGV("clamp24_from_float(%f) = %d\n", f, ival); in testClamp24()
85 EXPECT_EQ(lim24pos, ival); in testClamp24()
87 EXPECT_EQ(lim24neg, ival); in testClamp24()
92 int ival2 = clamp24_from_float(float_from_q8_23(ival)); in testClamp24()
93 int diff = abs(ival - ival2); in testClamp24()