Searched refs:topBits (Results 1 - 4 of 4) sorted by relevance
/frameworks/av/include/media/stagefright/foundation/ |
H A D | Flagged.h | 116 static constexpr Flag topBits(int num) { function in struct:android::_Flagged_helper 173 shift >= 0 && (mask & topBits<Flag>(shift)) == 0 && 221 ((mask & topBits<Flag>(1)) || (mask < 0)) ? -1 : 352 static_assert((_Flagged_helper::topBits<Flag>(SHIFT) & MASK) == 0, "SHIFT overflows MASK");
|
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/ |
H A D | Flagged.h | 116 static constexpr Flag topBits(int num) { function in struct:android::_Flagged_helper 173 shift >= 0 && (mask & topBits<Flag>(shift)) == 0 && 221 ((mask & topBits<Flag>(1)) || (mask < 0)) ? -1 : 352 static_assert((_Flagged_helper::topBits<Flag>(SHIFT) & MASK) == 0, "SHIFT overflows MASK");
|
/frameworks/av/media/libstagefright/include/media/stagefright/foundation/ |
H A D | Flagged.h | 116 static constexpr Flag topBits(int num) { function in struct:android::_Flagged_helper 173 shift >= 0 && (mask & topBits<Flag>(shift)) == 0 && 221 ((mask & topBits<Flag>(1)) || (mask < 0)) ? -1 : 352 static_assert((_Flagged_helper::topBits<Flag>(SHIFT) & MASK) == 0, "SHIFT overflows MASK");
|
/frameworks/av/media/libstagefright/foundation/tests/ |
H A D | Flagged_test.cpp | 289 // topBits(n) 290 static_assert(helper::topBits<u32>(0) == 0U, "top 0 bit"); 291 static_assert(helper::topBits<u32>(1) == 0x80000000U, "top 1 bit"); 292 static_assert(helper::topBits<u32>(2) == 0xC0000000U, "top 2 bits"); 293 static_assert(helper::topBits<u32>(12) == 0xFFF00000U, "top 12 bits"); 294 static_assert(helper::topBits<u32>(32) == 0xFFFFFFFFU, "all bits"); 295 // static_assert(helper::topBits<u32>(33) == 0xFFFFFFFFU, ""); // should OVERFLOW 297 static_assert(helper::topBits<u8>(0) == 0U, "top 0 bit"); 298 static_assert(helper::topBits<u8>(1) == 0x80U, "top 1 bit"); 299 static_assert(helper::topBits<u [all...] |
Completed in 98 milliseconds