Home
last modified time | relevance | path

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

/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/
DFlagged.h149 static constexpr IntFlag lshift(Flag value, int shift) { in lshift() function
369 static constexpr IntFlag sEffectiveMask = _Flagged_helper::lshift(MASK, sFlagShift);
407 mFlags(Flag(_Flagged_helper::lshift(flags & sFlagMask, sFlagShift))) { }
/frameworks/av/media/libstagefright/foundation/tests/
DFlagged_test.cpp271 static_assert(helper::lshift(0U, 0) == 0U, ""); in TEST_F()
272 static_assert(helper::lshift(0U, 30) == 0U, ""); in TEST_F()
273 static_assert(helper::lshift(1U, 0) == 1U, ""); in TEST_F()
274 static_assert(helper::lshift(1U, 10) == 1024U, ""); in TEST_F()
275 static_assert(helper::lshift(10U, 10) == 10240U, ""); in TEST_F()
276 static_assert(helper::lshift(10, 10) == 10240, ""); in TEST_F()
277 static_assert(helper::lshift(-10, 0) == -10, ""); in TEST_F()