Home
last modified time | relevance | path

Searched refs:ival (Results 1 – 4 of 4) sorted by relevance

/system/media/audio_utils/
Dprimitives.c143 int32_t ival = clamp24_from_float(*src++); in memcpy_to_p24_from_float() local
146 *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() local
163 *dst++ = ival >> 16; in memcpy_to_p24_from_q8_23()
164 *dst++ = ival >> 8; in memcpy_to_p24_from_q8_23()
[all …]
/system/media/audio_utils/include/audio_utils/
Dprimitives.h702 static inline int32_t clamp24_from_q8_23(int32_t ival) in clamp24_from_q8_23() argument
706 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() argument
788 return ival * scale; in float_from_q4_27()
875 static inline float float_from_i16(int16_t ival) in float_from_i16() argument
885 return ival * scale; in float_from_i16()
925 static inline float float_from_i32(int32_t ival) in float_from_i32() argument
929 return ival * scale; in float_from_i32()
[all …]
/system/media/audio_utils/tests/
Dprimitives_tests.cpp60 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()
[all …]
/system/core/liblog/
Dlogprint.c594 int ival; in android_log_printBinaryEvent() local
598 ival = get4LE(eventData); in android_log_printBinaryEvent()
602 outCount = snprintf(outBuf, outBufLen, "%d", ival); in android_log_printBinaryEvent()
636 uint32_t ival; in android_log_printBinaryEvent() local
641 ival = get4LE(eventData); in android_log_printBinaryEvent()
642 fval = *(float*)&ival; in android_log_printBinaryEvent()