Home
last modified time | relevance | path

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

/system/media/audio_utils/
Dprimitives.c117 int32_t ival = clamp24_from_float(*src++); in memcpy_to_p24_from_float() local
120 *dst++ = ival >> 16; in memcpy_to_p24_from_float()
121 *dst++ = ival >> 8; in memcpy_to_p24_from_float()
122 *dst++ = ival; in memcpy_to_p24_from_float()
124 *dst++ = ival; in memcpy_to_p24_from_float()
125 *dst++ = ival >> 8; in memcpy_to_p24_from_float()
126 *dst++ = ival >> 16; in memcpy_to_p24_from_float()
134 int32_t ival = clamp24_from_q8_23(*src++); in memcpy_to_p24_from_q8_23() local
137 *dst++ = ival >> 16; in memcpy_to_p24_from_q8_23()
138 *dst++ = ival >> 8; in memcpy_to_p24_from_q8_23()
[all …]
/system/media/audio_utils/include/audio_utils/
Dprimitives.h461 static inline int32_t clamp24_from_q8_23(int32_t ival) in clamp24_from_q8_23() argument
465 if (ival < limneg) { in clamp24_from_q8_23()
467 } else if (ival > limpos) { in clamp24_from_q8_23()
470 return ival; in clamp24_from_q8_23()
533 static inline float float_from_q4_27(int32_t ival) in float_from_q4_27() argument
544 return ival * scale; in float_from_q4_27()
626 static inline float float_from_i16(int16_t ival) in float_from_i16() argument
636 return ival * scale; in float_from_i16()
669 static inline float float_from_i32(int32_t ival) in float_from_i32() argument
673 return ival * scale; in float_from_i32()
[all …]
/system/core/toolbox/upstream-netbsd/bin/sleep/
Dsleep.c71 double fval, ival, val; in main() local
114 ival = floor(val); in main()
115 fval = (1000000000 * (val-ival)); in main()
116 ntime.tv_sec = ival; in main()
/system/media/audio_utils/tests/
Dprimitives_tests.cpp36 int16_t ival = clamp16_from_float(f / (1 << 15)); in testClamp16() local
39 ALOGV("clamp16_from_float(%f) = %d\n", f, ival); in testClamp16()
41 EXPECT_EQ(ival, lim16pos); in testClamp16()
43 EXPECT_EQ(ival, lim16neg); in testClamp16()
48 int ival2 = clamp16_from_float(float_from_i16(ival)); in testClamp16()
49 int diff = abs(ival - ival2); in testClamp16()
56 int32_t ival = clamp24_from_float(f / (1 << 23)); in testClamp24() local
59 ALOGV("clamp24_from_float(%f) = %d\n", f, ival); in testClamp24()
61 EXPECT_EQ(ival, lim24pos); in testClamp24()
63 EXPECT_EQ(ival, lim24neg); in testClamp24()
[all …]
/system/core/liblog/
Dlogprint.c442 int ival; in android_log_printBinaryEvent() local
446 ival = get4LE(eventData); in android_log_printBinaryEvent()
450 outCount = snprintf(outBuf, outBufLen, "%d", ival); in android_log_printBinaryEvent()