• Home
  • Raw
  • Download

Lines Matching refs:static_assert

30   static_assert(sizeof(source) == sizeof(dest),  in BitwiseCast()
39 static_assert(std::is_integral<T>::value, "Integer type required");
51 static_assert(First < IntegerBitWidth<T>::get,
62 static_assert(IntegerBitWidth<uint32_t>::get == 32, "IntegerBitWidth mismatch");
63 static_assert(IntegerBitWidth<int32_t>::get == 32, "IntegerBitWidth mismatch");
64 static_assert(IntegerBitWidth<uint64_t>::get == 64, "IntegerBitWidth mismatch");
65 static_assert(IntegerBitWidth<uint8_t>::get == 8, "IntegerBitWidth mismatch");
67 static_assert(SetBits<uint32_t, 0, 0>::get == uint32_t(0x00000000),
69 static_assert(SetBits<uint32_t, 0, 1>::get == uint32_t(0x00000001),
71 static_assert(SetBits<uint32_t, 31, 1>::get == uint32_t(0x80000000),
73 static_assert(SetBits<uint32_t, 1, 2>::get == uint32_t(0x00000006),
75 static_assert(SetBits<uint32_t, 30, 2>::get == uint32_t(0xc0000000),
77 static_assert(SetBits<uint32_t, 0, 31>::get == uint32_t(0x7FFFFFFF),
79 static_assert(SetBits<uint32_t, 0, 32>::get == uint32_t(0xFFFFFFFF),
81 static_assert(SetBits<uint32_t, 16, 16>::get == uint32_t(0xFFFF0000),
84 static_assert(SetBits<uint64_t, 0, 1>::get == uint64_t(0x0000000000000001LL),
86 static_assert(SetBits<uint64_t, 63, 1>::get == uint64_t(0x8000000000000000LL),
88 static_assert(SetBits<uint64_t, 62, 2>::get == uint64_t(0xc000000000000000LL),
90 static_assert(SetBits<uint64_t, 31, 1>::get == uint64_t(0x0000000080000000LL),
92 static_assert(SetBits<uint64_t, 16, 16>::get == uint64_t(0x00000000FFFF0000LL),
98 static_assert(std::is_integral<T>::value,
113 static_assert(std::is_integral<T>::value, "Integer type required");
114 static_assert(std::is_unsigned<T>::value, "Unsigned type required");
128 static_assert(std::is_integral<T>::value, "Integer type required");
129 static_assert(std::is_unsigned<T>::value, "Unsigned type required");