/external/valgrind/VEX/priv/ |
D | ir_inject.c | 61 load_aux(IREndness endian, IRType type, IRExpr *addr) in load_aux() argument 68 IRExpr_Load(endian, Ity_I64, addr)); in load_aux() 72 return unop(Iop_32to1, IRExpr_Load(endian, Ity_I32, addr)); in load_aux() 75 return IRExpr_Load(endian, type, addr); in load_aux() 82 load(IREndness endian, IRType type, HWord haddr) in load() argument 106 if (endian == Iend_BE) { in load() 109 load_aux(endian, type, addr), in load() 110 load_aux(endian, type, next_addr)); in load() 114 load_aux(endian, type, next_addr), in load() 115 load_aux(endian, type, addr)); in load() [all …]
|
/external/llvm/unittests/Support/ |
D | EndianTest.cpp | 27 EXPECT_EQ(BigAsHost, (endian::read<int32_t, big, unaligned>(bigval))); in TEST() 29 EXPECT_EQ(LittleAsHost,(endian::read<int32_t, little, unaligned>(littleval))); in TEST() 31 EXPECT_EQ((endian::read<int32_t, big, unaligned>(bigval + 1)), in TEST() 32 (endian::read<int32_t, little, unaligned>(littleval + 1))); in TEST() 40 (endian::readAtBitAlignment<int, little, unaligned>(&littleval[0], 6)), in TEST() 42 EXPECT_EQ((endian::readAtBitAlignment<int, big, unaligned>(&bigval[0], 6)), in TEST() 49 (endian::readAtBitAlignment<int, little, unaligned>(&littleval2[0], 4)), in TEST() 51 EXPECT_EQ((endian::readAtBitAlignment<int, big, unaligned>(&bigval2[0], 4)), in TEST() 55 (endian::readAtBitAlignment<int, little, unaligned>(&littleval2[0], 1)), in TEST() 57 EXPECT_EQ((endian::readAtBitAlignment<int, big, unaligned>(&bigval2[0], 1)), in TEST() [all …]
|
D | EndianStreamTest.cpp | 24 endian::Writer<little> LE(OS); in TEST() 39 endian::Writer<big> BE(OS); in TEST() 55 endian::Writer<little> LE(OS); in TEST() 70 endian::Writer<big> BE(OS); in TEST() 85 endian::Writer<little> LE(OS); in TEST() 104 endian::Writer<big> BE(OS); in TEST() 123 endian::Writer<little> LE(OS); in TEST() 142 endian::Writer<big> BE(OS); in TEST()
|
/external/llvm/include/llvm/Support/ |
D | Endian.h | 36 namespace endian { 38 template<typename value_type, endianness endian> 40 if (endian != native && sys::IsBigEndianHost != (endian == big)) in byte_swap() 47 endianness endian, 56 return byte_swap<value_type, endian>(ret); in read() 61 template<typename value_type, endianness endian, std::size_t alignment, 64 value_type ret = read<value_type, endian, alignment>(memory); in readNext() 71 endianness endian, 74 value = byte_swap<value_type, endian>(value); in write() 86 template <typename value_type, endianness endian, std::size_t alignment> [all …]
|
D | EndianStream.h | 24 namespace endian { 26 template <endianness endian> struct Writer { 30 Val = byte_swap<value_type, endian>(Val); in write()
|
/external/piex/src/ |
D | piex.cc | 137 bool GetExifIfd(const Endian endian, StreamInterface* stream, in GetExifIfd() argument 141 if (!Get32u(stream, sizeof(offset_to_ifd), endian, &offset_to_ifd)) { in GetExifIfd() 146 TiffDirectory tiff_ifd(endian); in GetExifIfd() 147 if (!ParseDirectory(kTiffOffset, offset_to_ifd, endian, {kTiffTagExifIfd}, in GetExifIfd() 154 return ParseDirectory(kTiffOffset, exif_offset, endian, in GetExifIfd() 162 bool GetMakernoteIfd(const TiffDirectory& exif_ifd, const Endian endian, in GetMakernoteIfd() argument 175 endian, {kTiffTagImageWidth, kOlymTagCameraSettings, in GetMakernoteIfd() 182 const Endian endian, StreamInterface* stream, in GetCameraSettingsIfd() argument 193 if (!Get32u(stream, camera_settings_offset, endian, in GetCameraSettingsIfd() 198 makernote_offset + camera_settings_offset, endian, in GetCameraSettingsIfd() [all …]
|
D | tiff_parser.cc | 261 const std::uint32_t max_number_ifds, const Endian endian, in ParseSubIfds() argument 271 if (!Get32u(stream, offset + 4 * j, endian, &sub_offset)) { in ParseSubIfds() 276 TiffDirectory sub_ifd(static_cast<Endian>(endian)); in ParseSubIfds() 277 if (!ParseDirectory(tiff_offset, sub_offset, endian, desired_tags, stream, in ParseSubIfds() 291 const Endian& endian, std::uint16_t* value) { in Get16u() argument 294 if (endian == kBigEndian) { in Get16u() 306 const Endian& endian, std::uint32_t* value) { in Get32u() argument 309 if (endian == kBigEndian) { in Get32u() 345 Endian* endian) { in GetEndianness() argument 355 *endian = kLittleEndian; in GetEndianness() [all …]
|
D | tiff_parser.h | 112 const tiff_directory::Endian& endian, std::uint16_t* value); 118 const tiff_directory::Endian& endian, std::uint32_t* value); 129 tiff_directory::Endian* endian); 150 const tiff_directory::Endian endian,
|
/external/fio/crc/ |
D | xxhash.c | 151 static uint32_t XXH_readLE32_align(const uint32_t* ptr, XXH_endianess endian, XXH_alignment align) in XXH_readLE32_align() argument 154 return endian==XXH_littleEndian ? A32(ptr) : XXH_swap32(A32(ptr)); in XXH_readLE32_align() 156 return endian==XXH_littleEndian ? *ptr : XXH_swap32(*ptr); in XXH_readLE32_align() 159 …32_t XXH_readLE32(const uint32_t* ptr, XXH_endianess endian) { return XXH_readLE32_align(ptr, endi… in XXH_readLE32() argument 165 static uint32_t XXH32_endian_align(const void* input, int len, uint32_t seed, XXH_endianess endian,… in XXH32_endian_align() argument 185 …v1 += XXH_readLE32_align((const uint32_t*)p, endian, align) * PRIME32_2; v1 = XXH_rotl32(v1, 13); … in XXH32_endian_align() 186 …v2 += XXH_readLE32_align((const uint32_t*)p, endian, align) * PRIME32_2; v2 = XXH_rotl32(v2, 13); … in XXH32_endian_align() 187 …v3 += XXH_readLE32_align((const uint32_t*)p, endian, align) * PRIME32_2; v3 = XXH_rotl32(v3, 13); … in XXH32_endian_align() 188 …v4 += XXH_readLE32_align((const uint32_t*)p, endian, align) * PRIME32_2; v4 = XXH_rotl32(v4, 13); … in XXH32_endian_align() 202 h32 += XXH_readLE32_align((const uint32_t*)p, endian, align) * PRIME32_3; in XXH32_endian_align() [all …]
|
/external/lz4/lib/ |
D | xxhash.c | 231 FORCE_INLINE U32 XXH_readLE32_align(const void* ptr, XXH_endianess endian, XXH_alignment align) in XXH_readLE32_align() argument 234 return endian==XXH_littleEndian ? A32(ptr) : XXH_swap32(A32(ptr)); in XXH_readLE32_align() 236 return endian==XXH_littleEndian ? *(U32*)ptr : XXH_swap32(*(U32*)ptr); in XXH_readLE32_align() 239 FORCE_INLINE U32 XXH_readLE32(const void* ptr, XXH_endianess endian) in XXH_readLE32() argument 241 return XXH_readLE32_align(ptr, endian, XXH_unaligned); in XXH_readLE32() 244 FORCE_INLINE U64 XXH_readLE64_align(const void* ptr, XXH_endianess endian, XXH_alignment align) in XXH_readLE64_align() argument 247 return endian==XXH_littleEndian ? A64(ptr) : XXH_swap64(A64(ptr)); in XXH_readLE64_align() 249 return endian==XXH_littleEndian ? *(U64*)ptr : XXH_swap64(*(U64*)ptr); in XXH_readLE64_align() 252 FORCE_INLINE U64 XXH_readLE64(const void* ptr, XXH_endianess endian) in XXH_readLE64() argument 254 return XXH_readLE64_align(ptr, endian, XXH_unaligned); in XXH_readLE64() [all …]
|
/external/ImageMagick/MagickCore/ |
D | quantum-import.c | 132 if (quantum_info->endian == LSBEndian) in PushDoublePixel() 172 if (quantum_info->endian == LSBEndian) in PushFloatPixel() 239 pixels=PushLongPixel(quantum_info->endian,pixels, in PushQuantumLongPixel() 294 p=PushShortPixel(quantum_info->endian,p,&pixel); in ImportAlphaQuantum() 304 p=PushShortPixel(quantum_info->endian,p,&pixel); in ImportAlphaQuantum() 332 p=PushLongPixel(quantum_info->endian,p,&pixel); in ImportAlphaQuantum() 417 p=PushLongPixel(quantum_info->endian,p,&pixel); in ImportBGRQuantum() 463 p=PushShortPixel(quantum_info->endian,p,&pixel); in ImportBGRQuantum() 487 p=PushShortPixel(quantum_info->endian,p,&pixel); in ImportBGRQuantum() 515 p=PushShortPixel(quantum_info->endian,p,&pixel); in ImportBGRQuantum() [all …]
|
D | quantum-export.c | 125 if (quantum_info->endian == LSBEndian) in PopDoublePixel() 161 if (quantum_info->endian == LSBEndian) in PopFloatPixel() 232 pixels=PopLongPixel(quantum_info->endian,quantum_info->state.pixel, in PopQuantumLongPixel() 279 q=PopShortPixel(quantum_info->endian,pixel,q); in ExportAlphaQuantum() 288 q=PopShortPixel(quantum_info->endian,pixel,q); in ExportAlphaQuantum() 312 q=PopLongPixel(quantum_info->endian,pixel,q); in ExportAlphaQuantum() 389 q=PopLongPixel(quantum_info->endian,pixel,q); in ExportBGRQuantum() 457 q=PopShortPixel(quantum_info->endian,(unsigned short) (pixel << 4), in ExportBGRQuantum() 482 q=PopShortPixel(quantum_info->endian,(unsigned short) (pixel << 4), in ExportBGRQuantum() 511 q=PopShortPixel(quantum_info->endian,(unsigned short) (pixel << 4), in ExportBGRQuantum() [all …]
|
D | profile.c | 1723 static inline signed short ReadProfileShort(const EndianType endian, in ReadProfileShort() argument 1738 if (endian == LSBEndian) in ReadProfileShort() 1751 static inline signed int ReadProfileLong(const EndianType endian, in ReadProfileLong() argument 1766 if (endian == LSBEndian) in ReadProfileLong() 1810 static inline void WriteProfileLong(const EndianType endian, in WriteProfileLong() argument 1816 if (endian == LSBEndian) in WriteProfileLong() 1832 static void WriteProfileShort(const EndianType endian, in WriteProfileShort() argument 1838 if (endian == LSBEndian) in WriteProfileShort() 1932 endian; in SyncExifProfile() local 1981 endian=LSBEndian; in SyncExifProfile() [all …]
|
D | quantum-private.h | 76 endian; member 182 static inline unsigned char *PopLongPixel(const EndianType endian, in PopLongPixel() argument 189 if (endian == LSBEndian) in PopLongPixel() 204 static inline unsigned char *PopShortPixel(const EndianType endian, in PopShortPixel() argument 211 if (endian == LSBEndian) in PopShortPixel() 229 static inline const unsigned char *PushLongPixel(const EndianType endian, in PushLongPixel() argument 235 if (endian == LSBEndian) in PushLongPixel() 252 static inline const unsigned char *PushShortPixel(const EndianType endian, in PushShortPixel() argument 258 if (endian == LSBEndian) in PushShortPixel()
|
D | mime.c | 93 endian; member 234 endian; in GetMimeInfo() local 308 endian=p->endian; in GetMimeInfo() 309 if (p->endian == UndefinedEndian) in GetMimeInfo() 310 endian=(*(char *) &lsb_first) == 1 ? LSBEndian : MSBEndian; in GetMimeInfo() 311 if (endian == LSBEndian) in GetMimeInfo() 338 endian=p->endian; in GetMimeInfo() 339 if (p->endian == UndefinedEndian) in GetMimeInfo() 340 endian=(*(char *) &lsb_first) == 1 ? LSBEndian : MSBEndian; in GetMimeInfo() 341 if (endian == LSBEndian) in GetMimeInfo() [all …]
|
/external/clang/lib/Lex/ |
D | PTHLexer.cpp | 55 unsigned Word0 = endian::readNext<uint32_t, little, aligned>(CurPtrShadow); in Lex() 57 endian::readNext<uint32_t, little, aligned>(CurPtrShadow); in Lex() 59 endian::readNext<uint32_t, little, aligned>(CurPtrShadow); in Lex() 198 uint32_t Offset = endian::readNext<uint32_t, little, aligned>(CurPPCondPtr); in SkipBlock() 201 TableIdx = endian::readNext<uint32_t, little, aligned>(CurPPCondPtr); in SkipBlock() 219 TokBuf + endian::readNext<uint32_t, little, aligned>(NextPPCondPtr); in SkipBlock() 224 TableIdx = endian::readNext<uint32_t, little, aligned>(NextPPCondPtr); in SkipBlock() 240 TokBuf + endian::readNext<uint32_t, little, aligned>(NextPPCondPtr); in SkipBlock() 241 uint32_t NextIdx = endian::readNext<uint32_t, little, aligned>(NextPPCondPtr); in SkipBlock() 295 uint32_t Offset = endian::readNext<uint32_t, little, aligned>(OffsetPtr); in getSourceLocation() [all …]
|
/external/avahi/avahi-compat-howl/include/corby/ |
D | buffer.h | 239 sw_uint8 endian); 246 sw_uint8 endian); 253 sw_uint8 endian); 260 sw_uint8 endian); 275 sw_uint8 endian); 283 sw_uint8 endian); 291 sw_uint8 endian); 299 sw_uint8 endian); 307 sw_uint8 endian); 315 sw_uint8 endian); [all …]
|
/external/llvm/test/CodeGen/PowerPC/ |
D | vec_mergeow.ll | 7 ; The shufflevector specifies the even elements, using big endian element 8 ; ordering. If run on a big endian machine, this should produce the vmrgew 9 ; instruction. If run on a little endian machine, this should produce the 10 ; vmrgow instruction. Note also that on little endian the input registers 32 ; The shufflevector specifies the even elements, using big endian element 33 ; ordering. If run on a big endian machine, this should produce the vmrgew 34 ; instruction. If run on a little endian machine, this should produce the 55 ; The shufflevector specifies the odd elements, using big endian element 56 ; ordering. If run on a big endian machine, this should produce the vmrgow 57 ; instruction. If run on a little endian machine, this should produce the [all …]
|
/external/llvm/include/llvm/MC/ |
D | MCObjectWriter.h | 129 support::endian::Writer<support::little>(*OS).write(Value); in writeLE16() 133 support::endian::Writer<support::little>(*OS).write(Value); in writeLE32() 137 support::endian::Writer<support::little>(*OS).write(Value); in writeLE64() 141 support::endian::Writer<support::big>(*OS).write(Value); in writeBE16() 145 support::endian::Writer<support::big>(*OS).write(Value); in writeBE32() 149 support::endian::Writer<support::big>(*OS).write(Value); in writeBE64()
|
/external/ImageMagick/coders/ |
D | fits.c | 208 const size_t bits_per_pixel,const EndianType endian,unsigned char *pixels) in SetFITSUnsignedPixels() argument 213 if (endian != MSBEndian) in SetFITSUnsignedPixels() 245 endian; in ReadFITSImage() member 316 fits_info.endian=MSBEndian; in ReadFITSImage() 382 fits_info.endian=MSBEndian; in ReadFITSImage() 384 fits_info.endian=LSBEndian; in ReadFITSImage() 424 image->endian=fits_info.endian; in ReadFITSImage() 461 SetFITSUnsignedPixels(1,image->depth,image->endian, in ReadFITSImage() 662 image->endian=MSBEndian; in WriteFITSImage() 709 if (image->endian == LSBEndian) in WriteFITSImage() [all …]
|
/external/libexif/m4m/ |
D | gp-byteorder.m4 | 10 dnl this is not possible (e.g. on a big-endian machine) they are defined 59 dnl First, do an endian check 63 AC_HAVE_SYMBOL(le32toh,machine/endian.h, 67 #include <machine/endian.h> 92 AC_HAVE_SYMBOL(swap32,machine/endian.h, 94 /* swap32 and swap16 are defined in machine/endian.h */ 112 AC_HAVE_SYMBOL(bswap32,machine/endian.h, 113 dnl We're already including machine/endian.h if this test succeeds 118 echo '#include <machine/endian.h>'>> "$1" 161 /* No other byte swapping functions are available on this big-endian system */ [all …]
|
/external/toybox/toys/pending/ |
D | file.c | 31 int endian = toybuf[5], bits = toybuf[4], i, j; local 61 if (endian == 1) xprintf("LSB "); 62 else if (endian == 2) { 66 xprintf("(bad endian %d)\n", endian); 67 endian = 0; 80 if ((bits&1)==bits && endian &&
|
/external/libmtp/m4/ |
D | byteorder.m4 | 10 dnl this is not possible (e.g. on a big-endian machine) they are defined 57 dnl First, do an endian check 61 AC_HAVE_SYMBOL(le32toh,machine/endian.h, 65 #include <machine/endian.h> 90 AC_HAVE_SYMBOL(swap32,machine/endian.h, 92 /* swap32 and swap16 are defined in machine/endian.h */ 110 AC_HAVE_SYMBOL(bswap32,machine/endian.h, 111 dnl We're already including machine/endian.h if this test succeeds 116 echo '#include <machine/endian.h>'>> "$1" 159 /* No other byte swapping functions are available on this big-endian system */ [all …]
|
/external/clang/lib/Frontend/ |
D | CacheTokens.cpp | 85 endian::Writer<little> LE(Out); in EmitData() 132 endian::Writer<little> LE(Out); in EmitKeyDataLength() 146 endian::Writer<little>(Out).write<uint8_t>((unsigned)V.getKind()); in EmitKey() 154 endian::Writer<little> LE(Out); in EmitData() 203 endian::Writer<little>(Out).write<uint8_t>(V); in Emit8() 208 endian::Writer<little>(Out).write<uint16_t>(V); in Emit16() 213 endian::Writer<little>(Out).write<uint32_t>(V); in Emit32() 222 endian::Writer<little>(Out).write<uint16_t>(V.size()); in EmitString() 296 endian::Writer<little> LE(Out); in LexTokens() 473 return llvm::support::endian::byte_swap<uint32_t, llvm::support::little>(X); in swap32le() [all …]
|
/external/clang/test/SemaOpenCL/ |
D | endian-attr.cl | 3 constant long a __attribute__((endian(host))) = 100; // expected-warning {{unknown attribute 'endia…
|