Home
last modified time | relevance | path

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

1234

/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()
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.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()
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()
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()
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()
/external/llvm-project/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()
Dor.pass.cpp23 static_assert(std::to_integer<int>(b1 | b2) == 3, ""); in main()
24 static_assert(std::to_integer<int>(b1 | b8) == 9, ""); in main()
25 static_assert(std::to_integer<int>(b2 | b8) == 10, ""); in main()
27 static_assert(std::to_integer<int>(b2 | b1) == 3, ""); in main()
28 static_assert(std::to_integer<int>(b8 | b1) == 9, ""); in main()
29 static_assert(std::to_integer<int>(b8 | b2) == 10, ""); in main()
Dxor.pass.cpp23 static_assert(std::to_integer<int>(b1 ^ b8) == 9, ""); in main()
24 static_assert(std::to_integer<int>(b1 ^ b9) == 8, ""); in main()
25 static_assert(std::to_integer<int>(b8 ^ b9) == 1, ""); in main()
27 static_assert(std::to_integer<int>(b8 ^ b1) == 9, ""); in main()
28 static_assert(std::to_integer<int>(b9 ^ b1) == 8, ""); in main()
29 static_assert(std::to_integer<int>(b9 ^ b8) == 1, ""); in main()
Dand.pass.cpp23 static_assert(std::to_integer<int>(b1 & b8) == 0, ""); in main()
24 static_assert(std::to_integer<int>(b1 & b9) == 1, ""); in main()
25 static_assert(std::to_integer<int>(b8 & b9) == 8, ""); in main()
27 static_assert(std::to_integer<int>(b8 & b1) == 0, ""); in main()
28 static_assert(std::to_integer<int>(b9 & b1) == 1, ""); in main()
29 static_assert(std::to_integer<int>(b9 & b8) == 8, ""); in main()
Dor.assign.pass.cpp31 static_assert(std::to_integer<int>(test(b1, b2)) == 3, ""); in main()
32 static_assert(std::to_integer<int>(test(b1, b8)) == 9, ""); in main()
33 static_assert(std::to_integer<int>(test(b2, b8)) == 10, ""); in main()
35 static_assert(std::to_integer<int>(test(b2, b1)) == 3, ""); in main()
36 static_assert(std::to_integer<int>(test(b8, b1)) == 9, ""); in main()
37 static_assert(std::to_integer<int>(test(b8, b2)) == 10, ""); in main()
Dxor.assign.pass.cpp31 static_assert(std::to_integer<int>(test(b1, b8)) == 9, ""); in main()
32 static_assert(std::to_integer<int>(test(b1, b9)) == 8, ""); in main()
33 static_assert(std::to_integer<int>(test(b8, b9)) == 1, ""); in main()
35 static_assert(std::to_integer<int>(test(b8, b1)) == 9, ""); in main()
36 static_assert(std::to_integer<int>(test(b9, b1)) == 8, ""); in main()
37 static_assert(std::to_integer<int>(test(b9, b8)) == 1, ""); in main()
Dand.assign.pass.cpp31 static_assert(std::to_integer<int>(test(b1, b8)) == 0, ""); in main()
32 static_assert(std::to_integer<int>(test(b1, b9)) == 1, ""); in main()
33 static_assert(std::to_integer<int>(test(b8, b9)) == 8, ""); in main()
35 static_assert(std::to_integer<int>(test(b8, b1)) == 0, ""); in main()
36 static_assert(std::to_integer<int>(test(b9, b1)) == 1, ""); in main()
37 static_assert(std::to_integer<int>(test(b9, b8)) == 8, ""); in main()
Dlshift.pass.cpp25 static_assert(std::to_integer<int>(b1 << 1) == 2, ""); in main()
26 static_assert(std::to_integer<int>(b1 << 2) == 4, ""); in main()
27 static_assert(std::to_integer<int>(b3 << 4) == 48, ""); in main()
28 static_assert(std::to_integer<int>(b3 << 6) == 192, ""); in main()
Drshift.pass.cpp31 static_assert(std::to_integer<int>(b100 >> 1) == 50, ""); in main()
32 static_assert(std::to_integer<int>(b100 >> 2) == 25, ""); in main()
33 static_assert(std::to_integer<int>(b115 >> 3) == 14, ""); in main()
34 static_assert(std::to_integer<int>(b115 >> 6) == 1, ""); in main()
Dnot.pass.cpp23 static_assert(std::to_integer<int>(~b1) == 254, ""); in main()
24 static_assert(std::to_integer<int>(~b2) == 253, ""); in main()
25 static_assert(std::to_integer<int>(~b8) == 247, ""); in main()
Dlshift.assign.pass.cpp32 static_assert(std::to_integer<int>(test(b2)) == 8, "" ); in main()
33 static_assert(std::to_integer<int>(test(b3)) == 12, "" ); in main()
Drshift.assign.pass.cpp32 static_assert(std::to_integer<int>(test(b16)) == 4, "" ); in main()
33 static_assert(std::to_integer<int>(test(b192)) == 48, "" ); in main()
/external/llvm-project/lldb/source/Plugins/ObjectFile/Breakpad/
DBreakpadRecords.cpp114 bool success = to_integer(age_str, age, 16); in parseModuleId()
227 if (!to_integer(Str, Number)) in parse()
260 if (!to_integer(Str, Address, 16)) in parsePublicOrFunc()
265 if (!to_integer(Str, *Size, 16)) in parsePublicOrFunc()
270 if (!to_integer(Str, ParamSize, 16)) in parsePublicOrFunc()
306 if (!to_integer(Str, Address, 16)) in parse()
311 if (!to_integer(Str, Size, 16)) in parse()
316 if (!to_integer(Str, LineNum)) in parse()
321 if (!to_integer(Str, FileNum)) in parse()
378 if (!to_integer(Str, Address, 16)) in parse()
[all …]
/external/llvm-project/lldb/unittests/tools/lldb-server/tests/
DMessageObjects.cpp83 if (!llvm::to_integer(KeyStr, Register, 10)) in parseRegisters()
169 if (!to_integer(Elements["bitsize"], Info.byte_size, 10)) in create()
173 if (!to_integer(Elements["offset"], Info.byte_offset, 10)) in create()
252 if (!to_integer(Key, Reg, 16)) in parseRegisters()
273 if (!to_integer(SignalStr, Signal, 16)) in create()
290 if (!to_integer(Elements["thread"][0], Thread, 16)) in create()
308 if (!to_integer(std::get<0>(ThreadPc), Id, 16)) in create()
331 if (!to_integer(Response, Status, 16)) in create()

1234