Home
last modified time | relevance | path

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

/system/media/audio_utils/
Dprimitives.c157 int32_t ival = clamp24_from_float(*src++); in memcpy_to_p24_from_float() local
160 *dst++ = ival >> 16; in memcpy_to_p24_from_float()
161 *dst++ = ival >> 8; in memcpy_to_p24_from_float()
162 *dst++ = ival; in memcpy_to_p24_from_float()
164 *dst++ = ival; in memcpy_to_p24_from_float()
165 *dst++ = ival >> 8; in memcpy_to_p24_from_float()
166 *dst++ = ival >> 16; in memcpy_to_p24_from_float()
174 int32_t ival = clamp24_from_q8_23(*src++); in memcpy_to_p24_from_q8_23() local
177 *dst++ = ival >> 16; in memcpy_to_p24_from_q8_23()
178 *dst++ = ival >> 8; in memcpy_to_p24_from_q8_23()
[all …]
/system/media/audio_utils/include/audio_utils/
Dprimitives.h856 static inline int32_t clamp24_from_q8_23(int32_t ival) in clamp24_from_q8_23() argument
860 if (ival < limneg) { in clamp24_from_q8_23()
862 } else if (ival > limpos) { in clamp24_from_q8_23()
865 return ival; in clamp24_from_q8_23()
931 static inline float float_from_q4_27(int32_t ival) in float_from_q4_27() argument
942 return ival * scale; in float_from_q4_27()
1029 static inline float float_from_i16(int16_t ival) in float_from_i16() argument
1039 return ival * scale; in float_from_i16()
1079 static inline float float_from_i32(int32_t ival) in float_from_i32() argument
1083 return ival * scale; in float_from_i32()
[all …]
/system/media/audio_utils/tests/
Dprimitives_tests.cpp71 int16_t ival = clamp16_from_float(f / (1 << 15)); in testClamp16() local
74 ALOGV("clamp16_from_float(%f) = %d\n", f, ival); in testClamp16()
76 EXPECT_EQ(lim16pos, ival); in testClamp16()
78 EXPECT_EQ(lim16neg, ival); in testClamp16()
83 int ival2 = clamp16_from_float(float_from_i16(ival)); in testClamp16()
84 int diff = abs(ival - ival2); in testClamp16()
91 int32_t ival = clamp24_from_float(f / (1 << 23)); in testClamp24() local
94 ALOGV("clamp24_from_float(%f) = %d\n", f, ival); in testClamp24()
96 EXPECT_EQ(lim24pos, ival); in testClamp24()
98 EXPECT_EQ(lim24neg, ival); in testClamp24()
[all …]
/system/core/liblog/
Dlogprint.cpp744 int32_t ival; in android_log_printBinaryEvent() local
747 ival = get4LE(eventData); in android_log_printBinaryEvent()
751 lval = ival; in android_log_printBinaryEvent()
773 uint32_t ival; in android_log_printBinaryEvent() local
777 ival = get4LE(eventData); in android_log_printBinaryEvent()
778 fval = *(float*)&ival; in android_log_printBinaryEvent()
/system/netd/tests/
Dbinder_test.cpp989 const int ival = std::stoi(value); in TEST_F() local
990 EXPECT_GT(ival, 0); in TEST_F()
992 EXPECT_TRUE(mNetd->setProcSysNet(ipversion, category, tun, parameter, std::to_string(2 * ival)) in TEST_F()
995 EXPECT_EQ(2 * ival, std::stoi(value)); in TEST_F()
997 EXPECT_TRUE(mNetd->setProcSysNet(ipversion, category, tun, parameter, std::to_string(ival)) in TEST_F()
1000 EXPECT_EQ(ival, std::stoi(value)); in TEST_F()