Home
last modified time | relevance | path

Searched refs:to_integer (Results 1 – 25 of 25) sorted by relevance

/external/Microsoft-GSL/tests/
Dbyte_tests.cpp103 CHECK(0x12 == gsl::to_integer<char>(b));
104 CHECK(0x12 == gsl::to_integer<short>(b));
105 CHECK(0x12 == gsl::to_integer<long>(b));
106 CHECK(0x12 == gsl::to_integer<long long>(b));
108 CHECK(0x12 == gsl::to_integer<unsigned char>(b));
109 CHECK(0x12 == gsl::to_integer<unsigned short>(b));
110 CHECK(0x12 == gsl::to_integer<unsigned long>(b));
111 CHECK(0x12 == gsl::to_integer<unsigned long long>(b));
/external/libcxx/test/std/language.support/support.types/byteops/
Dto_integer.pass.cpp24 static_assert(noexcept(std::to_integer<int>(b1)), "" ); in main()
25 static_assert(std::is_same<int, decltype(std::to_integer<int>(b1))>::value, "" ); in main()
26 static_assert(std::is_same<long, decltype(std::to_integer<long>(b1))>::value, "" ); in main()
27 …static_assert(std::is_same<unsigned short, decltype(std::to_integer<unsigned short>(b1))>::value, … in main()
29 static_assert(std::to_integer<int>(b1) == 1, ""); in main()
30 static_assert(std::to_integer<int>(b3) == 3, ""); in main()
Dxor.pass.cpp24 static_assert(std::to_integer<int>(b1 ^ b8) == 9, ""); in main()
25 static_assert(std::to_integer<int>(b1 ^ b9) == 8, ""); in main()
26 static_assert(std::to_integer<int>(b8 ^ b9) == 1, ""); in main()
28 static_assert(std::to_integer<int>(b8 ^ b1) == 9, ""); in main()
29 static_assert(std::to_integer<int>(b9 ^ b1) == 8, ""); in main()
30 static_assert(std::to_integer<int>(b9 ^ b8) == 1, ""); in main()
Dor.pass.cpp24 static_assert(std::to_integer<int>(b1 | b2) == 3, ""); in main()
25 static_assert(std::to_integer<int>(b1 | b8) == 9, ""); in main()
26 static_assert(std::to_integer<int>(b2 | b8) == 10, ""); in main()
28 static_assert(std::to_integer<int>(b2 | b1) == 3, ""); in main()
29 static_assert(std::to_integer<int>(b8 | b1) == 9, ""); in main()
30 static_assert(std::to_integer<int>(b8 | b2) == 10, ""); in main()
Dand.pass.cpp24 static_assert(std::to_integer<int>(b1 & b8) == 0, ""); in main()
25 static_assert(std::to_integer<int>(b1 & b9) == 1, ""); in main()
26 static_assert(std::to_integer<int>(b8 & b9) == 8, ""); in main()
28 static_assert(std::to_integer<int>(b8 & b1) == 0, ""); in main()
29 static_assert(std::to_integer<int>(b9 & b1) == 1, ""); in main()
30 static_assert(std::to_integer<int>(b9 & b8) == 8, ""); in main()
Dxor.assign.pass.cpp32 static_assert(std::to_integer<int>(test(b1, b8)) == 9, ""); in main()
33 static_assert(std::to_integer<int>(test(b1, b9)) == 8, ""); in main()
34 static_assert(std::to_integer<int>(test(b8, b9)) == 1, ""); in main()
36 static_assert(std::to_integer<int>(test(b8, b1)) == 9, ""); in main()
37 static_assert(std::to_integer<int>(test(b9, b1)) == 8, ""); in main()
38 static_assert(std::to_integer<int>(test(b9, b8)) == 1, ""); in main()
Dor.assign.pass.cpp32 static_assert(std::to_integer<int>(test(b1, b2)) == 3, ""); in main()
33 static_assert(std::to_integer<int>(test(b1, b8)) == 9, ""); in main()
34 static_assert(std::to_integer<int>(test(b2, b8)) == 10, ""); in main()
36 static_assert(std::to_integer<int>(test(b2, b1)) == 3, ""); in main()
37 static_assert(std::to_integer<int>(test(b8, b1)) == 9, ""); in main()
38 static_assert(std::to_integer<int>(test(b8, b2)) == 10, ""); in main()
Dand.assign.pass.cpp32 static_assert(std::to_integer<int>(test(b1, b8)) == 0, ""); in main()
33 static_assert(std::to_integer<int>(test(b1, b9)) == 1, ""); in main()
34 static_assert(std::to_integer<int>(test(b8, b9)) == 8, ""); in main()
36 static_assert(std::to_integer<int>(test(b8, b1)) == 0, ""); in main()
37 static_assert(std::to_integer<int>(test(b9, b1)) == 1, ""); in main()
38 static_assert(std::to_integer<int>(test(b9, b8)) == 8, ""); in main()
Dlshift.pass.cpp26 static_assert(std::to_integer<int>(b1 << 1) == 2, ""); in main()
27 static_assert(std::to_integer<int>(b1 << 2) == 4, ""); in main()
28 static_assert(std::to_integer<int>(b3 << 4) == 48, ""); in main()
29 static_assert(std::to_integer<int>(b3 << 6) == 192, ""); in main()
Drshift.pass.cpp32 static_assert(std::to_integer<int>(b100 >> 1) == 50, ""); in main()
33 static_assert(std::to_integer<int>(b100 >> 2) == 25, ""); in main()
34 static_assert(std::to_integer<int>(b115 >> 3) == 14, ""); in main()
35 static_assert(std::to_integer<int>(b115 >> 6) == 1, ""); in main()
Dnot.pass.cpp24 static_assert(std::to_integer<int>(~b1) == 254, ""); in main()
25 static_assert(std::to_integer<int>(~b2) == 253, ""); in main()
26 static_assert(std::to_integer<int>(~b8) == 247, ""); in main()
Drshift.assign.pass.cpp33 static_assert(std::to_integer<int>(test(b16)) == 4, "" ); in main()
34 static_assert(std::to_integer<int>(test(b192)) == 48, "" ); in main()
Dlshift.assign.pass.cpp33 static_assert(std::to_integer<int>(test(b2)) == 8, "" ); in main()
34 static_assert(std::to_integer<int>(test(b3)) == 12, "" ); in main()
Denum_direct_init.pass.cpp20 static_assert(std::to_integer<int>(b) == 42, ""); in main()
Dto_integer.fail.cpp22 auto f = std::to_integer<float>(b1); in main()
/external/v8/src/interpreter/
Dinterpreter-intrinsics.h39 V(ToInteger, to_integer, 1) \
/external/Microsoft-GSL/include/gsl/
Dgsl_byte93 using std::to_integer;
160 constexpr IntegerType to_integer(byte b) noexcept
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/
DStringExtras.h193 template <typename N> bool to_integer(StringRef S, N &Num, unsigned Base = 0) {
/external/swiftshader/third_party/llvm-7.0/llvm/tools/opt/
DDebugify.cpp268 (void)to_integer(DVI->getVariable()->getName(), Var, 10); in checkDebugifyMetadata()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-pdbutil/
Dllvm-pdbutil.cpp1241 if (to_integer(opts::exportstream::Stream, Index)) { in exportStream()
1280 if (!to_integer(Matches[1], Parsed->Min)) in parseRange()
1285 if (!to_integer(Matches[3], *Parsed->Max)) in parseRange()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-exegesis/lib/
DAnalysis.cpp425 if (!llvm::to_integer(Representative[I].key(), ProcResIdx, 10)) { in measurementsMatch()
/external/v8/src/arm/
Ddisasm-arm.cc1758 bool to_integer = (instr->Bit(18) == 1); in DecodeVCVTBetweenFloatingPointAndInteger() local
1760 if (to_integer) { in DecodeVCVTBetweenFloatingPointAndInteger()
Dsimulator-arm.cc3742 bool to_integer = (instr->Bit(18) == 1); in DecodeVCVTBetweenFloatingPointAndInteger() local
3747 if (to_integer) { in DecodeVCVTBetweenFloatingPointAndInteger()
/external/v8/src/
Dcode-stub-assembler.cc7274 Label to_integer(this), negative_check(this), in ToSmiLength() local
7277 GotoIfNot(TaggedIsSmi(input), &to_integer); in ToSmiLength()
7281 BIND(&to_integer); in ToSmiLength()
/external/libcxx/include/
Dtype_traits4858 to_integer(byte __b) noexcept { return static_cast<_Integer>(__b); }