Home
last modified time | relevance | path

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

/external/swiftshader/third_party/llvm-7.0/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/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/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/swiftshader/third_party/llvm-7.0/llvm/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 …]
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/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/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-7.0/llvm/include/llvm/ProfileData/
DInstrProfReader.h227 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-7.0/llvm/lib/ProfileData/
DInstrProfReader.cpp283 sys::getSwappedBytes(RawInstrProf::getMagic<IntPtrT>()) == Magic; in hasFormat()