Home
last modified time | relevance | path

Searched refs:getSwappedBytes (Results 1 – 20 of 20) sorted by relevance

/external/llvm/unittests/Support/
DSwapByteOrderTest.cpp23 TEST(getSwappedBytes, UnsignedRoundTrip) { in TEST() argument
30 sys::getSwappedBytes(sys::getSwappedBytes(original_uint8))); in TEST()
34 sys::getSwappedBytes(sys::getSwappedBytes(original_uint16))); in TEST()
38 sys::getSwappedBytes(sys::getSwappedBytes(original_uint32))); in TEST()
42 sys::getSwappedBytes(sys::getSwappedBytes(original_uint64))); in TEST()
48 TEST(getSwappedBytes, SignedRoundTrip) { in TEST() argument
55 sys::getSwappedBytes(sys::getSwappedBytes(original_int8))); in TEST()
59 sys::getSwappedBytes(sys::getSwappedBytes(original_int16))); in TEST()
63 sys::getSwappedBytes(sys::getSwappedBytes(original_int32))); in TEST()
67 sys::getSwappedBytes(sys::getSwappedBytes(original_int64))); in TEST()
[all …]
/external/llvm-project/llvm/unittests/Support/
DSwapByteOrderTest.cpp32 TEST(getSwappedBytes, UnsignedRoundTrip) { in TEST() argument
39 sys::getSwappedBytes(sys::getSwappedBytes(original_uint8))); in TEST()
43 sys::getSwappedBytes(sys::getSwappedBytes(original_uint16))); in TEST()
47 sys::getSwappedBytes(sys::getSwappedBytes(original_uint32))); in TEST()
51 sys::getSwappedBytes(sys::getSwappedBytes(original_uint64))); in TEST()
57 TEST(getSwappedBytes, SignedRoundTrip) { in TEST() argument
64 sys::getSwappedBytes(sys::getSwappedBytes(original_int8))); in TEST()
68 sys::getSwappedBytes(sys::getSwappedBytes(original_int16))); in TEST()
72 sys::getSwappedBytes(sys::getSwappedBytes(original_int32))); in TEST()
76 sys::getSwappedBytes(sys::getSwappedBytes(original_int64))); in TEST()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DSwapByteOrder.h98 inline unsigned char getSwappedBytes(unsigned char C) { return C; } in getSwappedBytes() function
99 inline signed char getSwappedBytes(signed char C) { return C; } in getSwappedBytes() function
100 inline char getSwappedBytes(char C) { return C; } in getSwappedBytes() function
102 inline unsigned short getSwappedBytes(unsigned short C) { return SwapByteOrder_16(C); } in getSwappedBytes() function
103 inline signed short getSwappedBytes( signed short C) { return SwapByteOrder_16(C); } in getSwappedBytes() function
105 inline unsigned int getSwappedBytes(unsigned int C) { return SwapByteOrder_32(C); } in getSwappedBytes() function
106 inline signed int getSwappedBytes( signed int C) { return SwapByteOrder_32(C); } in getSwappedBytes() function
109 inline unsigned long getSwappedBytes(unsigned long C) { return SwapByteOrder_32(C); } in getSwappedBytes() function
110 inline signed long getSwappedBytes( signed long C) { return SwapByteOrder_32(C); } in getSwappedBytes() function
112 inline unsigned long getSwappedBytes(unsigned long C) { return SwapByteOrder_64(C); } in getSwappedBytes() function
[all …]
DDataExtractor.h37 inline uint24_t getSwappedBytes(uint24_t C) { in getSwappedBytes() function
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DSwapByteOrder.h72 inline unsigned char getSwappedBytes(unsigned char C) { return C; } in getSwappedBytes() function
73 inline signed char getSwappedBytes(signed char C) { return C; } in getSwappedBytes() function
74 inline char getSwappedBytes(char C) { return C; } in getSwappedBytes() function
76 inline unsigned short getSwappedBytes(unsigned short C) { return SwapByteOrder_16(C); } in getSwappedBytes() function
77 inline signed short getSwappedBytes( signed short C) { return SwapByteOrder_16(C); } in getSwappedBytes() function
79 inline unsigned int getSwappedBytes(unsigned int C) { return SwapByteOrder_32(C); } in getSwappedBytes() function
80 inline signed int getSwappedBytes( signed int C) { return SwapByteOrder_32(C); } in getSwappedBytes() function
83 inline unsigned long getSwappedBytes(unsigned long C) { return SwapByteOrder_32(C); } in getSwappedBytes() function
84 inline signed long getSwappedBytes( signed long C) { return SwapByteOrder_32(C); } in getSwappedBytes() function
86 inline unsigned long getSwappedBytes(unsigned long C) { return SwapByteOrder_64(C); } in getSwappedBytes() function
[all …]
/external/llvm/include/llvm/Support/
DSwapByteOrder.h69 inline unsigned char getSwappedBytes(unsigned char C) { return C; } in getSwappedBytes() function
70 inline signed char getSwappedBytes(signed char C) { return C; } in getSwappedBytes() function
71 inline char getSwappedBytes(char C) { return C; } in getSwappedBytes() function
73 inline unsigned short getSwappedBytes(unsigned short C) { return SwapByteOrder_16(C); } in getSwappedBytes() function
74 inline signed short getSwappedBytes( signed short C) { return SwapByteOrder_16(C); } in getSwappedBytes() function
76 inline unsigned int getSwappedBytes(unsigned int C) { return SwapByteOrder_32(C); } in getSwappedBytes() function
77 inline signed int getSwappedBytes( signed int C) { return SwapByteOrder_32(C); } in getSwappedBytes() function
80 inline unsigned long getSwappedBytes(unsigned long C) { return SwapByteOrder_32(C); } in getSwappedBytes() function
81 inline signed long getSwappedBytes( signed long C) { return SwapByteOrder_32(C); } in getSwappedBytes() function
83 inline unsigned long getSwappedBytes(unsigned long C) { return SwapByteOrder_64(C); } in getSwappedBytes() function
[all …]
/external/llvm-project/llvm/include/llvm/Support/
DSwapByteOrder.h103 inline unsigned char getSwappedBytes(unsigned char C) { return C; } in getSwappedBytes() function
104 inline signed char getSwappedBytes(signed char C) { return C; } in getSwappedBytes() function
105 inline char getSwappedBytes(char C) { return C; } in getSwappedBytes() function
107 inline unsigned short getSwappedBytes(unsigned short C) { return ByteSwap_16(C); } in getSwappedBytes() function
108 inline signed short getSwappedBytes( signed short C) { return ByteSwap_16(C); } in getSwappedBytes() function
110 inline unsigned int getSwappedBytes(unsigned int C) { return ByteSwap_32(C); } in getSwappedBytes() function
111 inline signed int getSwappedBytes( signed int C) { return ByteSwap_32(C); } in getSwappedBytes() function
113 inline unsigned long getSwappedBytes(unsigned long C) { in getSwappedBytes() function
118 inline signed long getSwappedBytes(signed long C) { in getSwappedBytes() function
124 inline unsigned long long getSwappedBytes(unsigned long long C) { in getSwappedBytes() function
[all …]
DDataExtractor.h37 inline uint24_t getSwappedBytes(uint24_t C) { in getSwappedBytes() function
/external/clang/unittests/Lex/
DHeaderMapTest.cpp39 using llvm::sys::getSwappedBytes; in swapBytes()
40 Header.Magic = getSwappedBytes(Header.Magic); in swapBytes()
41 Header.Version = getSwappedBytes(Header.Version); in swapBytes()
42 Header.NumBuckets = getSwappedBytes(Header.NumBuckets); in swapBytes()
43 Header.StringsOffset = getSwappedBytes(Header.StringsOffset); in swapBytes()
/external/llvm-project/clang/unittests/Lex/
DHeaderMapTest.cpp38 using llvm::sys::getSwappedBytes; in swapBytes()
39 Header.Magic = getSwappedBytes(Header.Magic); in swapBytes()
40 Header.Version = getSwappedBytes(Header.Version); in swapBytes()
41 Header.NumBuckets = getSwappedBytes(Header.NumBuckets); in swapBytes()
42 Header.StringsOffset = getSwappedBytes(Header.StringsOffset); in swapBytes()
/external/llvm-project/lld/lib/ReaderWriter/MachO/
DMachONormalizedFileBinaryUtils.h69 using llvm::sys::getSwappedBytes;
182 result.r_word0 = swap ? getSwappedBytes(r0) : r0; in packRelocation()
183 result.r_word1 = swap ? getSwappedBytes(r1) : r1; in packRelocation()
DMachONormalizedFileBinaryWriter.cpp1117 *indirects++ = llvm::sys::getSwappedBytes(index); in writeSymbolTable()
1129 *indirects++ = llvm::sys::getSwappedBytes(index); in writeSymbolTable()
/external/llvm-project/clang/lib/Lex/
DHeaderMap.cpp91 ? llvm::sys::getSwappedBytes(Header->NumBuckets) in checkHeader()
/external/clang/lib/Lex/
DHeaderMap.cpp91 ? llvm::sys::getSwappedBytes(Header->NumBuckets) in checkHeader()
/external/llvm/include/llvm/ProfileData/
DInstrProfReader.h210 return ShouldSwapBytes ? sys::getSwappedBytes(Int) : Int; in swap()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ProfileData/
DInstrProfReader.h238 return ShouldSwapBytes ? sys::getSwappedBytes(Int) : Int; in swap()
/external/llvm-project/llvm/include/llvm/ProfileData/
DInstrProfReader.h247 return ShouldSwapBytes ? sys::getSwappedBytes(Int) : Int; in swap()
/external/llvm/lib/ProfileData/
DInstrProfReader.cpp260 sys::getSwappedBytes(RawInstrProf::getMagic<IntPtrT>()) == Magic; in hasFormat()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ProfileData/
DInstrProfReader.cpp301 sys::getSwappedBytes(RawInstrProf::getMagic<IntPtrT>()) == Magic; in hasFormat()
/external/llvm-project/llvm/lib/ProfileData/
DInstrProfReader.cpp308 sys::getSwappedBytes(RawInstrProf::getMagic<IntPtrT>()) == Magic; in hasFormat()