Searched refs:ival (Results 1 – 4 of 4) sorted by relevance
143 int32_t ival = clamp24_from_float(*src++); in memcpy_to_p24_from_float() local146 *dst++ = ival >> 16; in memcpy_to_p24_from_float()147 *dst++ = ival >> 8; in memcpy_to_p24_from_float()148 *dst++ = ival; in memcpy_to_p24_from_float()150 *dst++ = ival; in memcpy_to_p24_from_float()151 *dst++ = ival >> 8; in memcpy_to_p24_from_float()152 *dst++ = ival >> 16; in memcpy_to_p24_from_float()160 int32_t ival = clamp24_from_q8_23(*src++); in memcpy_to_p24_from_q8_23() local163 *dst++ = ival >> 16; in memcpy_to_p24_from_q8_23()164 *dst++ = ival >> 8; in memcpy_to_p24_from_q8_23()[all …]
702 static inline int32_t clamp24_from_q8_23(int32_t ival) in clamp24_from_q8_23() argument706 if (ival < limneg) { in clamp24_from_q8_23()708 } else if (ival > limpos) { in clamp24_from_q8_23()711 return ival; in clamp24_from_q8_23()777 static inline float float_from_q4_27(int32_t ival) in float_from_q4_27() argument788 return ival * scale; in float_from_q4_27()875 static inline float float_from_i16(int16_t ival) in float_from_i16() argument885 return ival * scale; in float_from_i16()925 static inline float float_from_i32(int32_t ival) in float_from_i32() argument929 return ival * scale; in float_from_i32()[all …]
62 int16_t ival = clamp16_from_float(f / (1 << 15)); in testClamp16() local65 ALOGV("clamp16_from_float(%f) = %d\n", f, ival); in testClamp16()67 EXPECT_EQ(lim16pos, ival); in testClamp16()69 EXPECT_EQ(lim16neg, ival); in testClamp16()74 int ival2 = clamp16_from_float(float_from_i16(ival)); in testClamp16()75 int diff = abs(ival - ival2); in testClamp16()82 int32_t ival = clamp24_from_float(f / (1 << 23)); in testClamp24() local85 ALOGV("clamp24_from_float(%f) = %d\n", f, ival); in testClamp24()87 EXPECT_EQ(lim24pos, ival); in testClamp24()89 EXPECT_EQ(lim24neg, ival); in testClamp24()[all …]
754 int32_t ival; in android_log_printBinaryEvent() local757 ival = get4LE(eventData); in android_log_printBinaryEvent()761 lval = ival; in android_log_printBinaryEvent()783 uint32_t ival; in android_log_printBinaryEvent() local787 ival = get4LE(eventData); in android_log_printBinaryEvent()788 fval = *(float*)&ival; in android_log_printBinaryEvent()