Home
last modified time | relevance | path

Searched refs:ClampToInt16 (Results 1 – 2 of 2) sorted by relevance

/external/webrtc/webrtc/modules/
Dmodule_common_types_unittest.cc115 TEST(ClampToInt16, TestCases) { in TEST() argument
116 EXPECT_EQ(0x0000, ClampToInt16(0x00000000)); in TEST()
117 EXPECT_EQ(0x0001, ClampToInt16(0x00000001)); in TEST()
118 EXPECT_EQ(0x7FFF, ClampToInt16(0x00007FFF)); in TEST()
119 EXPECT_EQ(0x7FFF, ClampToInt16(0x7FFFFFFF)); in TEST()
120 EXPECT_EQ(-0x0001, ClampToInt16(-0x00000001)); in TEST()
121 EXPECT_EQ(-0x8000, ClampToInt16(-0x8000)); in TEST()
122 EXPECT_EQ(-0x8000, ClampToInt16(-0x7FFFFFFF)); in TEST()
/external/webrtc/webrtc/modules/include/
Dmodule_common_types.h656 inline int16_t ClampToInt16(int32_t input) { in ClampToInt16() function
701 data_[i] = ClampToInt16(wrap_guard);
726 data_[i] = ClampToInt16(wrap_guard);