/external/swiftshader/third_party/LLVM/lib/Support/ |
D | Path.cpp | 52 sys::IdentifyFileType(const char *magic, unsigned length) { in IdentifyFileType() argument 53 assert(magic && "Invalid magic number string"); in IdentifyFileType() 55 switch ((unsigned char)magic[0]) { in IdentifyFileType() 57 if (magic[1] == (char)0xC0 && magic[2] == (char)0x17 && in IdentifyFileType() 58 magic[3] == (char)0x0B) in IdentifyFileType() 62 if (magic[1] == 'C' && magic[2] == (char)0xC0 && magic[3] == (char)0xDE) in IdentifyFileType() 67 if (memcmp(magic,"!<arch>\n",8) == 0) in IdentifyFileType() 72 if (magic[1] == 'E' && magic[2] == 'L' && magic[3] == 'F') { in IdentifyFileType() 73 if (length >= 18 && magic[17] == 0) in IdentifyFileType() 74 switch (magic[16]) { in IdentifyFileType() [all …]
|
/external/e2fsprogs/lib/ext2fs/ |
D | gen_bitmap.c | 32 errcode_t magic; member 43 (((bmap)->magic == EXT2_ET_MAGIC_GENERIC_BITMAP) || \ 44 ((bmap)->magic == EXT2_ET_MAGIC_BLOCK_BITMAP) || \ 45 ((bmap)->magic == EXT2_ET_MAGIC_INODE_BITMAP)) 48 (((bmap)->magic == EXT2_ET_MAGIC_GENERIC_BITMAP64) || \ 49 ((bmap)->magic == EXT2_ET_MAGIC_BLOCK_BITMAP64) || \ 50 ((bmap)->magic == EXT2_ET_MAGIC_INODE_BITMAP64)) 70 if (!bitmap || !((bitmap->magic == EXT2_ET_MAGIC_GENERIC_BITMAP) || in check_magic() 71 (bitmap->magic == EXT2_ET_MAGIC_INODE_BITMAP) || in check_magic() 72 (bitmap->magic == EXT2_ET_MAGIC_BLOCK_BITMAP))) in check_magic() [all …]
|
D | ext2_err.et.in | 15 "Wrong magic number for ext2_filsys structure" 18 "Wrong magic number for badblocks_list structure" 21 "Wrong magic number for badblocks_iterate structure" 24 "Wrong magic number for inode_scan structure" 27 "Wrong magic number for io_channel structure" 30 "Wrong magic number for unix io_channel structure" 33 "Wrong magic number for io_manager structure" 36 "Wrong magic number for block_bitmap structure" 39 "Wrong magic number for inode_bitmap structure" 42 "Wrong magic number for generic_bitmap structure" [all …]
|
D | bmap64.h | 41 errcode_t magic; member 57 (((bmap)->magic == EXT2_ET_MAGIC_GENERIC_BITMAP) || \ 58 ((bmap)->magic == EXT2_ET_MAGIC_BLOCK_BITMAP) || \ 59 ((bmap)->magic == EXT2_ET_MAGIC_INODE_BITMAP)) 62 (((bmap)->magic == EXT2_ET_MAGIC_GENERIC_BITMAP64) || \ 63 ((bmap)->magic == EXT2_ET_MAGIC_BLOCK_BITMAP64) || \ 64 ((bmap)->magic == EXT2_ET_MAGIC_INODE_BITMAP64))
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_debug_memory.c | 78 unsigned magic; member 84 unsigned magic; member 143 hdr->magic = DEBUG_MEMORY_MAGIC; in debug_malloc() 154 ftr->magic = DEBUG_MEMORY_MAGIC; in debug_malloc() 174 if(hdr->magic != DEBUG_MEMORY_MAGIC) { in debug_free() 183 if(ftr->magic != DEBUG_MEMORY_MAGIC) { in debug_free() 204 hdr->magic = 0; in debug_free() 205 ftr->magic = 0; in debug_free() 238 if(old_hdr->magic != DEBUG_MEMORY_MAGIC) { in debug_realloc() 247 if(old_ftr->magic != DEBUG_MEMORY_MAGIC) { in debug_realloc() [all …]
|
D | u_half.h | 54 union fi magic; in util_float_to_half() local 58 magic.ui = 0xf << 23; in util_float_to_half() 75 f32.f *= magic.f; in util_float_to_half() 107 union fi magic; in util_half_to_float() local 112 magic.ui = 0xef << 23; in util_half_to_float() 118 f32.f *= magic.f; in util_half_to_float()
|
/external/strace/tests/ |
D | ioctl_loop.c | 174 static const kernel_ulong_t magic = in main() local 183 ioctl(-1, unknown_loop_cmd, magic); in main() 190 (unsigned long) magic); in main() 192 ioctl(-1, LOOP_SET_DIRECT_IO + 1, magic); in main() 197 (unsigned long) magic); in main() 199 ioctl(-1, LOOP_CTL_GET_FREE + 1, magic); in main() 204 (unsigned long) magic); in main() 207 ioctl(-1, LOOP_SET_FD, magic); in main() 209 (unsigned int) magic); in main() 294 ioctl(-1, LOOP_CHANGE_FD, magic); in main() [all …]
|
D | ioctl_v4l2.c | 58 static const unsigned int magic = 0xdeadbeef; variable 71 f->fmt.pix.pixelformat = magic; in init_v4l2_format() 85 f->fmt.pix_mp.pixelformat = magic; in init_v4l2_format() 132 f->fmt.vbi.sample_format = magic; in init_v4l2_format() 160 f->fmt.sdr.pixelformat = magic; in init_v4l2_format() 185 cc0(magic), cc1(magic), cc2(magic), cc3(magic), in dprint_ioctl_v4l2() 203 cc0(magic), cc1(magic), cc2(magic), cc3(magic)); in dprint_ioctl_v4l2() 264 cc0(magic), cc1(magic), cc2(magic), cc3(magic), in dprint_ioctl_v4l2() 313 cc0(magic), cc1(magic), cc2(magic), cc3(magic) in dprint_ioctl_v4l2() 346 p_fmtdesc->index = magic; in main() [all …]
|
/external/strace/tests-m32/ |
D | ioctl_loop.c | 174 static const kernel_ulong_t magic = in main() local 183 ioctl(-1, unknown_loop_cmd, magic); in main() 190 (unsigned long) magic); in main() 192 ioctl(-1, LOOP_SET_DIRECT_IO + 1, magic); in main() 197 (unsigned long) magic); in main() 199 ioctl(-1, LOOP_CTL_GET_FREE + 1, magic); in main() 204 (unsigned long) magic); in main() 207 ioctl(-1, LOOP_SET_FD, magic); in main() 209 (unsigned int) magic); in main() 294 ioctl(-1, LOOP_CHANGE_FD, magic); in main() [all …]
|
D | ioctl_v4l2.c | 58 static const unsigned int magic = 0xdeadbeef; variable 71 f->fmt.pix.pixelformat = magic; in init_v4l2_format() 85 f->fmt.pix_mp.pixelformat = magic; in init_v4l2_format() 132 f->fmt.vbi.sample_format = magic; in init_v4l2_format() 160 f->fmt.sdr.pixelformat = magic; in init_v4l2_format() 185 cc0(magic), cc1(magic), cc2(magic), cc3(magic), in dprint_ioctl_v4l2() 203 cc0(magic), cc1(magic), cc2(magic), cc3(magic)); in dprint_ioctl_v4l2() 264 cc0(magic), cc1(magic), cc2(magic), cc3(magic), in dprint_ioctl_v4l2() 313 cc0(magic), cc1(magic), cc2(magic), cc3(magic) in dprint_ioctl_v4l2() 346 p_fmtdesc->index = magic; in main() [all …]
|
/external/strace/tests-mx32/ |
D | ioctl_loop.c | 174 static const kernel_ulong_t magic = in main() local 183 ioctl(-1, unknown_loop_cmd, magic); in main() 190 (unsigned long) magic); in main() 192 ioctl(-1, LOOP_SET_DIRECT_IO + 1, magic); in main() 197 (unsigned long) magic); in main() 199 ioctl(-1, LOOP_CTL_GET_FREE + 1, magic); in main() 204 (unsigned long) magic); in main() 207 ioctl(-1, LOOP_SET_FD, magic); in main() 209 (unsigned int) magic); in main() 294 ioctl(-1, LOOP_CHANGE_FD, magic); in main() [all …]
|
D | ioctl_v4l2.c | 58 static const unsigned int magic = 0xdeadbeef; variable 71 f->fmt.pix.pixelformat = magic; in init_v4l2_format() 85 f->fmt.pix_mp.pixelformat = magic; in init_v4l2_format() 132 f->fmt.vbi.sample_format = magic; in init_v4l2_format() 160 f->fmt.sdr.pixelformat = magic; in init_v4l2_format() 185 cc0(magic), cc1(magic), cc2(magic), cc3(magic), in dprint_ioctl_v4l2() 203 cc0(magic), cc1(magic), cc2(magic), cc3(magic)); in dprint_ioctl_v4l2() 264 cc0(magic), cc1(magic), cc2(magic), cc3(magic), in dprint_ioctl_v4l2() 313 cc0(magic), cc1(magic), cc2(magic), cc3(magic) in dprint_ioctl_v4l2() 346 p_fmtdesc->index = magic; in main() [all …]
|
/external/python/cpython2/Tools/scripts/ |
D | fixheader.py | 29 magic = 'Py_' 32 magic = magic + c.upper() 33 else: magic = magic + '_' 35 print '#ifndef', magic 36 print '#define', magic 46 print '#endif /*', '!'+magic, '*/'
|
/external/google-breakpad/src/common/mac/ |
D | macho_walker.cc | 135 uint32_t magic; in FindHeader() local 136 if (!ReadBytes(&magic, sizeof(magic), 0)) in FindHeader() 139 offset = sizeof(magic); in FindHeader() 143 if (magic == FAT_MAGIC || magic == FAT_CIGAM) { in FindHeader() 146 else if (magic != MH_MAGIC && magic != MH_CIGAM && magic != MH_MAGIC_64 && in FindHeader() 147 magic != MH_CIGAM_64) { in FindHeader() 158 if (magic == MH_CIGAM || magic == MH_CIGAM_64) in FindHeader() 209 bool swap = (header.magic == MH_CIGAM); in WalkHeaderAtOffset() 235 bool swap = (header.magic == MH_CIGAM_64); in WalkHeader64AtOffset()
|
/external/libdrm/ |
D | xf86drmSL.c | 57 unsigned long magic; /* SL_ENTRY_MAGIC */ member 65 unsigned long magic; /* SL_LIST_MAGIC */ member 81 entry->magic = SL_ENTRY_MAGIC; in SLCreateEntry() 107 list->magic = SL_LIST_MAGIC; in drmSLCreate() 123 if (list->magic != SL_LIST_MAGIC) return -1; /* Bad magic */ in drmSLDestroy() 126 if (entry->magic != SL_ENTRY_MAGIC) return -1; /* Bad magic */ in drmSLDestroy() 128 entry->magic = SL_FREED_MAGIC; in drmSLDestroy() 132 list->magic = SL_FREED_MAGIC; in drmSLDestroy() 143 if (list->magic != SL_LIST_MAGIC) return NULL; in SLLocate() 162 if (list->magic != SL_LIST_MAGIC) return -1; /* Bad magic */ in drmSLInsert() [all …]
|
/external/blktrace/ |
D | blktrace.h | 64 #define CHECK_MAGIC(t) (((t)->magic & 0xffffff00) == BLK_IO_TRACE_MAGIC) 92 fprintf(stderr, "bad trace magic %x\n", t->magic); in verify_trace() 95 if ((t->magic & 0xff) != SUPPORTED_VERSION) { in verify_trace() 97 t->magic & 0xff); in verify_trace() 109 t->magic = be32_to_cpu(t->magic); in trace_to_cpu() 125 static inline int check_data_endianness(u32 magic) in check_data_endianness() argument 127 if ((magic & 0xffffff00) == BLK_IO_TRACE_MAGIC) { in check_data_endianness() 132 magic = __bswap_32(magic); in check_data_endianness() 133 if ((magic & 0xffffff00) == BLK_IO_TRACE_MAGIC) { in check_data_endianness()
|
/external/tremolo/Tremolo/ |
D | misc.h | 73 union magic { union 83 union magic { union 93 union magic magic; in MULT32() local 94 magic.whole = (ogg_int64_t)x * y; in MULT32() 95 return magic.halves.hi; in MULT32() 103 union magic magic; in MULT31_SHIFT15() local 104 magic.whole = (ogg_int64_t)x * y; in MULT31_SHIFT15() 105 return ((ogg_uint32_t)(magic.halves.lo)>>15) | ((magic.halves.hi)<<17); in MULT31_SHIFT15()
|
/external/boringssl/src/crypto/fipsmodule/aes/asm/ |
D | vpaes-x86.pl | 62 my ($round, $base, $magic, $key, $const, $inp, $out)= 186 &mov ($magic,16); 213 &movdqa ("xmm1",&QWP(-0x40,$base,$magic));# .Lk_mc_forward[] 216 &movdqa ("xmm4",&QWP(0,$base,$magic)); # .Lk_mc_backward[] 224 &add ($magic,16); # next mc 227 &and ($magic,0x30); # ... mod 4 261 &movdqa ("xmm1",&QWP(0x40,$base,$magic));# .Lk_sr[] 278 &mov ($magic,$round); 281 &shl ($magic,4); 285 &xor ($magic,0x30); [all …]
|
/external/openssh/ |
D | md5crypt.c | 24 static char *magic = "$1$"; variable 47 return (strncmp(salt, magic, strlen(magic)) == 0); in is_md5_salt() 64 if(strncmp(sp, magic, strlen(magic)) == 0) in md5_crypt() 65 sp += strlen(magic); in md5_crypt() 86 MD5_Update(&ctx, magic, strlen(magic)); in md5_crypt() 112 snprintf(passwd, sizeof(passwd), "%s%s$", magic, salt_copy); in md5_crypt()
|
/external/fio/ |
D | mutex.c | 23 assert(mutex->magic == FIO_MUTEX_MAGIC); in __fio_mutex_remove() 116 mutex->magic = FIO_MUTEX_MAGIC; in __fio_mutex_init() 158 assert(mutex->magic == FIO_MUTEX_MAGIC); in fio_mutex_down_timeout() 199 assert(mutex->magic == FIO_MUTEX_MAGIC); in fio_mutex_down_trylock() 213 assert(mutex->magic == FIO_MUTEX_MAGIC); in fio_mutex_down() 231 assert(mutex->magic == FIO_MUTEX_MAGIC); in fio_mutex_up() 246 assert(lock->magic == FIO_RWLOCK_MAGIC); in fio_rwlock_write() 252 assert(lock->magic == FIO_RWLOCK_MAGIC); in fio_rwlock_read() 258 assert(lock->magic == FIO_RWLOCK_MAGIC); in fio_rwlock_unlock() 264 assert(lock->magic == FIO_RWLOCK_MAGIC); in fio_rwlock_remove() [all …]
|
/external/libpcap/ |
D | sf-pcap.c | 151 pcap_check_header(bpf_u_int32 magic, FILE *fp, u_int precision, char *errbuf, in pcap_check_header() argument 170 if (magic != TCPDUMP_MAGIC && magic != KUZNETZOV_TCPDUMP_MAGIC && in pcap_check_header() 171 magic != NSEC_TCPDUMP_MAGIC) { in pcap_check_header() 172 magic = SWAPLONG(magic); in pcap_check_header() 173 if (magic != TCPDUMP_MAGIC && magic != KUZNETZOV_TCPDUMP_MAGIC && in pcap_check_header() 174 magic != NSEC_TCPDUMP_MAGIC) in pcap_check_header() 183 hdr.magic = magic; in pcap_check_header() 184 amt_read = fread(((char *)&hdr) + sizeof hdr.magic, 1, in pcap_check_header() 185 sizeof(hdr) - sizeof(hdr.magic), fp); in pcap_check_header() 186 if (amt_read != sizeof(hdr) - sizeof(hdr.magic)) { in pcap_check_header() [all …]
|
/external/python/cpython2/Lib/ |
D | whichdb.py | 89 (magic,) = struct.unpack("=l", s) 94 if magic in (0x13579ace, 0x13579acd, 0x13579acf): 98 if magic in (0x00061561, 0x61150600): 104 (magic,) = struct.unpack("=l", s16[-4:]) 109 if magic in (0x00061561, 0x61150600):
|
/external/skia/src/core/ |
D | SkHalf.cpp | 33 static const FloatUIntUnion magic = { 15 << 23 }; in SkFloatToHalf() local 56 floatUnion.fFloat *= magic.fFloat; in SkFloatToHalf() 73 static const FloatUIntUnion magic = { 126 << 23 }; in SkHalfToFloat() local 79 o.fUInt = magic.fUInt + halfMantissa(h); in SkHalfToFloat() 80 o.fFloat -= magic.fFloat; in SkHalfToFloat()
|
/external/syslinux/com32/modules/ |
D | ifmemdsk.c | 242 static const char magic[] = "$INT13SF"; in is_safe_hook() local 245 if (memcmp(test->signature, magic, sizeof magic - 1)) in is_safe_hook() 252 static const char magic[] = "MEMDISK"; in is_memdisk_hook() local 255 if (memcmp(hook->vendor, magic, sizeof magic - 1)) in is_memdisk_hook() 284 static const char magic[] = "mBFT"; in is_mbft() local 289 if (memcmp(test->acpi.signature, magic, sizeof magic - 1)) in is_mbft()
|
/external/valgrind/helgrind/ |
D | hg_lock_n_thread.c | 49 return thr != NULL && thr->magic == Thread_MAGIC; in HG_() 68 || (lock->magic != LockN_MAGIC && lock->magic != LockP_MAGIC)) in is_sane_Lock_BASE() 104 && lock->magic == LockP_MAGIC in HG_() 111 && lock->magic == LockN_MAGIC in HG_()
|