Searched refs:ClampToInt16 (Results 1 – 2 of 2) sorted by relevance
115 TEST(ClampToInt16, TestCases) { in TEST() argument116 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()
656 inline int16_t ClampToInt16(int32_t input) { in ClampToInt16() function701 data_[i] = ClampToInt16(wrap_guard);726 data_[i] = ClampToInt16(wrap_guard);