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.cpp62 int16_t ival = clamp16_from_float(f / (1 << 15)); in testClamp16() local
65 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() local
85 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 …]
/system/core/liblog/
Dlogprint.c754 int32_t ival; in android_log_printBinaryEvent() local
757 ival = get4LE(eventData); in android_log_printBinaryEvent()
761 lval = ival; in android_log_printBinaryEvent()
783 uint32_t ival; in android_log_printBinaryEvent() local
787 ival = get4LE(eventData); in android_log_printBinaryEvent()
788 fval = *(float*)&ival; in android_log_printBinaryEvent()