/external/webrtc/webrtc/system_wrappers/source/ |
D | aligned_malloc.cc | 28 uintptr_t GetRightAlign(uintptr_t start_pos, size_t alignment) { in GetRightAlign() 49 uintptr_t start_pos = reinterpret_cast<uintptr_t>(pointer); in GetRightAlign() 65 void* memory_pointer = malloc(size + sizeof(uintptr_t) + alignment - 1); in AlignedMalloc() 72 uintptr_t align_start_pos = reinterpret_cast<uintptr_t>(memory_pointer); in AlignedMalloc() 73 align_start_pos += sizeof(uintptr_t); in AlignedMalloc() 74 uintptr_t aligned_pos = GetRightAlign(align_start_pos, alignment); in AlignedMalloc() 79 uintptr_t header_pos = aligned_pos - sizeof(uintptr_t); in AlignedMalloc() 81 uintptr_t memory_start = reinterpret_cast<uintptr_t>(memory_pointer); in AlignedMalloc() 82 memcpy(header_pointer, &memory_start, sizeof(uintptr_t)); in AlignedMalloc() 91 uintptr_t aligned_pos = reinterpret_cast<uintptr_t>(mem_block); in AlignedFree() [all …]
|
/external/compiler-rt/test/msan/ |
D | mmap_below_shadow.cc | 19 uintptr_t hint = 0x0f0000000000ULL; in main() 20 const uintptr_t app_start = 0x000000000000ULL; in main() 22 uintptr_t hint = 0x4f0000000000ULL; in main() 23 const uintptr_t app_start = 0x600000000000ULL; in main() 25 uintptr_t hint = 0x4f00000000ULL; in main() 26 const uintptr_t app_start = 0x6000000000ULL; in main() 28 uintptr_t hint = 0x2f0000000000ULL; in main() 29 const uintptr_t app_start = 0x300000000000ULL; in main() 31 uintptr_t hint = 0x4f0000000ULL; in main() 32 const uintptr_t app_start = 0x7000000000ULL; in main() [all …]
|
/external/libunwind_llvm/include/ |
D | unwind.h | 122 uintptr_t private_1; // non-zero means forced unwind 123 uintptr_t private_2; // holds sp that phase1 found for phase2 to use 209 extern uintptr_t _Unwind_GetGR(struct _Unwind_Context *context, int index); 211 uintptr_t new_value); 212 extern uintptr_t _Unwind_GetIP(struct _Unwind_Context *context); 213 extern void _Unwind_SetIP(struct _Unwind_Context *, uintptr_t new_value); 231 uintptr_t _Unwind_GetGR(struct _Unwind_Context *context, int index) { in _Unwind_GetGR() 232 uintptr_t value = 0; in _Unwind_GetGR() 239 uintptr_t value) { in _Unwind_SetGR() 244 uintptr_t _Unwind_GetIP(struct _Unwind_Context *context) { in _Unwind_GetIP() [all …]
|
/external/compiler-rt/lib/builtins/ |
D | emutls.c | 34 uintptr_t index; /* data[index-1] is the object address */ 50 base = (void*)(((uintptr_t)(object + EXTRA_ALIGN_PTR_BYTES)) in emutls_memalign_alloc() 51 & ~(uintptr_t)(align - 1)); in emutls_memalign_alloc() 73 COMPILE_TIME_ASSERT(sizeof(uintptr_t) == sizeof(gcc_pointer)); in emutls_allocate_object() 74 COMPILE_TIME_ASSERT(sizeof(uintptr_t) == sizeof(void*)); in emutls_allocate_object() 97 uintptr_t size; /* number of elements in the 'data' array */ 105 uintptr_t i; in emutls_key_destructor() 119 static __inline uintptr_t emutls_get_index(__emutls_control *control) { in emutls_get_index() 120 uintptr_t index = __atomic_load_n(&control->object.index, __ATOMIC_ACQUIRE); in emutls_get_index() 137 uintptr_t size) { in emutls_check_array_set_size() [all …]
|
D | gcc_personality_v0.c | 43 static uintptr_t readULEB128(const uint8_t** data) in readULEB128() 45 uintptr_t result = 0; in readULEB128() 46 uintptr_t shift = 0; in readULEB128() 59 static uintptr_t readEncodedPointer(const uint8_t** data, uint8_t encoding) in readEncodedPointer() 62 uintptr_t result = 0; in readEncodedPointer() 70 result = *((const uintptr_t*)p); in readEncodedPointer() 71 p += sizeof(uintptr_t); in readEncodedPointer() 113 result += (uintptr_t)(*data); in readEncodedPointer() 127 result = *((const uintptr_t*)result); in readEncodedPointer() 166 uintptr_t pc = _Unwind_GetIP(context)-1; in __gcc_personality_sj0() [all …]
|
D | clear_cache.c | 97 arg.addr = (uintptr_t)start; in __clear_cache() 98 arg.len = (uintptr_t)end - (uintptr_t)start; in __clear_cache() 115 const uintptr_t start_int = (uintptr_t) start; in __clear_cache() 116 const uintptr_t end_int = (uintptr_t) end; in __clear_cache() 119 const uintptr_t address_range_limit = 256; in __clear_cache() 129 uint64_t xstart = (uint64_t)(uintptr_t) start; in __clear_cache() 130 uint64_t xend = (uint64_t)(uintptr_t) end; in __clear_cache()
|
/external/llvm/include/llvm/ADT/ |
D | SmallBitVector.h | 35 uintptr_t X; 39 NumBaseBits = sizeof(uintptr_t) * CHAR_BIT, 91 return X & uintptr_t(1); in isSmall() 99 void switchToSmall(uintptr_t NewSmallBits, size_t NewSize) { in switchToSmall() 106 X = reinterpret_cast<uintptr_t>(BV); in switchToLarge() 112 uintptr_t getSmallRawBits() const { in getSmallRawBits() 117 void setSmallRawBits(uintptr_t NewRawBits) { in setSmallRawBits() 119 X = (NewRawBits << 1) | uintptr_t(1); in setSmallRawBits() 132 uintptr_t getSmallBits() const { in getSmallBits() 133 return getSmallRawBits() & ~(~uintptr_t(0) << getSmallSize()); in getSmallBits() [all …]
|
/external/valgrind/none/tests/amd64/ |
D | asorep.c | 11 uintptr_t b1 = (uintptr_t) buf1, b2 = (uintptr_t) buf2; in main() 24 || rdi != (uintptr_t) buf2 + 4 in main() 25 || rsi != (uintptr_t) buf1 + 4 in main() 35 || rdi != (uintptr_t) buf2 + 6 in main() 43 if (rsi != (uintptr_t) buf2 + 4 in main() 52 if (rdi != (uintptr_t) buf2 + 15 in main() 53 || rsi != (uintptr_t) buf1 + 15 in main() 62 if (rdi != (uintptr_t) buf2 + 18 in main() 71 if (rdi != (uintptr_t) buf2 + 18 in main()
|
/external/jemalloc/test/unit/ |
D | rtree.c | 21 for (i = 1; i <= (sizeof(uintptr_t) << 3); i++) { in TEST_BEGIN() 37 for (i = 1; i <= (sizeof(uintptr_t) << 3); i++) { in TEST_BEGIN() 47 assert_false(rtree_set(&rtree, ~((uintptr_t)0), &node_b), in TEST_BEGIN() 49 assert_ptr_eq(rtree_get(&rtree, ~((uintptr_t)0), true), &node_b, in TEST_BEGIN() 61 for (i = 1; i < (sizeof(uintptr_t) << 3); i++) { in TEST_BEGIN() 62 uintptr_t keys[] = {0, 1, in TEST_BEGIN() 63 (((uintptr_t)1) << (sizeof(uintptr_t)*8-i)) - 1}; in TEST_BEGIN() 70 for (j = 0; j < sizeof(keys)/sizeof(uintptr_t); j++) { in TEST_BEGIN() 73 for (k = 0; k < sizeof(keys)/sizeof(uintptr_t); k++) { in TEST_BEGIN() 82 (((uintptr_t)1) << (sizeof(uintptr_t)*8-i)), false), in TEST_BEGIN() [all …]
|
/external/v8/src/ |
D | execution.h | 74 void SetStackLimit(uintptr_t limit); 119 uintptr_t climit() { return thread_local_.climit(); } in climit() 120 uintptr_t jslimit() { return thread_local_.jslimit(); } in jslimit() 124 uintptr_t real_climit() { in real_climit() 127 uintptr_t real_jslimit() { in real_jslimit() 167 static const uintptr_t kInterruptLimit = V8_UINT64_C(0xfffffffffffffffe); 168 static const uintptr_t kIllegalLimit = V8_UINT64_C(0xfffffffffffffff8); 170 static const uintptr_t kInterruptLimit = 0xfffffffe; 171 static const uintptr_t kIllegalLimit = 0xfffffff8; 196 uintptr_t real_jslimit_; // Actual JavaScript stack limit set for the VM. [all …]
|
D | gdb-jit.cc | 53 uintptr_t position() const { in position() 60 Slot(Writer* w, uintptr_t offset) : w_(w), offset_(offset) { } in Slot() 76 uintptr_t offset_; 87 Slot<T> SlotAt(uintptr_t offset) { in SlotAt() 99 uintptr_t slot_position = position_; in CreateSlotsHere() 105 void Ensure(uintptr_t pos) { in Ensure() 116 void Align(uintptr_t align) { in Align() 117 uintptr_t delta = position_ % align; in Align() 119 uintptr_t padding = align - delta; in Align() 124 void WriteULEB128(uintptr_t value) { in WriteULEB128() [all …]
|
/external/jemalloc/src/ |
D | chunk_dss.c | 117 cpad = (void *)((uintptr_t)dss_max + gap_size); in chunk_alloc_dss() 118 ret = (void *)ALIGNMENT_CEILING((uintptr_t)dss_max, in chunk_alloc_dss() 120 cpad_size = (uintptr_t)ret - (uintptr_t)cpad; in chunk_alloc_dss() 121 dss_next = (void *)((uintptr_t)ret + size); in chunk_alloc_dss() 122 if ((uintptr_t)ret < (uintptr_t)dss_max || in chunk_alloc_dss() 123 (uintptr_t)dss_next < (uintptr_t)dss_max) { in chunk_alloc_dss() 165 if ((uintptr_t)chunk >= (uintptr_t)dss_base in chunk_in_dss() 166 && (uintptr_t)chunk < (uintptr_t)dss_max) in chunk_in_dss()
|
D | android_je_iterate.c | 21 void (*callback)(uintptr_t ptr, size_t size, void* arg), void* arg); 23 void (*callback)(uintptr_t ptr, size_t size, void* arg), void* arg); 36 int je_iterate(uintptr_t base, size_t size, in je_iterate() 37 void (*callback)(uintptr_t ptr, size_t size, void* arg), void* arg) { in je_iterate() 40 uintptr_t ptr = (uintptr_t)CHUNK_ADDR2BASE(base); in je_iterate() 41 uintptr_t end = CHUNK_CEILING(base + size); in je_iterate() 44 assert(ptr == (uintptr_t)CHUNK_ADDR2BASE(ptr)); in je_iterate() 54 (uintptr_t)extent_node_addr_get(node) == ptr); in je_iterate() 68 } else if ((uintptr_t)extent_node_addr_get(node) == ptr) { in je_iterate() 86 void (*callback)(uintptr_t ptr, size_t size, void* arg), void* arg) { in je_iterate_chunk() [all …]
|
D | extent.c | 30 uintptr_t a_addr = (uintptr_t)extent_node_addr_get(a); in extent_szad_comp() 31 uintptr_t b_addr = (uintptr_t)extent_node_addr_get(b); in extent_szad_comp() 46 uintptr_t a_addr = (uintptr_t)extent_node_addr_get(a); in extent_ad_comp() 47 uintptr_t b_addr = (uintptr_t)extent_node_addr_get(b); in extent_ad_comp()
|
/external/fio/ |
D | err.h | 14 #define IS_ERR_VALUE(x) ((x) >= (uintptr_t)-MAX_ERRNO) 16 static inline void *ERR_PTR(uintptr_t error) in ERR_PTR() 21 static inline uintptr_t PTR_ERR(const void *ptr) in PTR_ERR() 23 return (uintptr_t) ptr; in PTR_ERR() 26 static inline uintptr_t IS_ERR(const void *ptr) in IS_ERR() 28 return IS_ERR_VALUE((uintptr_t)ptr); in IS_ERR() 31 static inline uintptr_t IS_ERR_OR_NULL(const void *ptr) in IS_ERR_OR_NULL() 33 return !ptr || IS_ERR_VALUE((uintptr_t)ptr); in IS_ERR_OR_NULL()
|
/external/libcxxabi/src/ |
D | cxa_personality.cpp | 145 uintptr_t readPointerHelper(const uint8_t*& p) { in readPointerHelper() 149 return static_cast<uintptr_t>(value); in readPointerHelper() 188 uintptr_t 191 uintptr_t result = 0; in readULEB128() 192 uintptr_t shift = 0; in readULEB128() 198 result |= static_cast<uintptr_t>(byte & 0x7F) << shift; in readULEB128() 214 uintptr_t result = 0; in readSLEB128() 215 uintptr_t shift = 0; in readSLEB128() 221 result |= static_cast<uintptr_t>(byte & 0x7F) << shift; in readSLEB128() 226 result |= static_cast<uintptr_t>(~0) << shift; in readSLEB128() [all …]
|
/external/vixl/src/vixl/a64/ |
D | cpu-a64.cc | 92 uintptr_t start = reinterpret_cast<uintptr_t>(address); in EnsureIAndDCacheCoherency() 93 uintptr_t dsize = static_cast<uintptr_t>(dcache_line_size_); in EnsureIAndDCacheCoherency() 94 uintptr_t isize = static_cast<uintptr_t>(icache_line_size_); in EnsureIAndDCacheCoherency() 95 uintptr_t dline = start & ~(dsize - 1); in EnsureIAndDCacheCoherency() 96 uintptr_t iline = start & ~(isize - 1); in EnsureIAndDCacheCoherency() 101 uintptr_t end = start + length; in EnsureIAndDCacheCoherency()
|
/external/clang/test/Sema/ |
D | block-return.c | 53 typedef unsigned int * uintptr_t; typedef 60 …Boolean (^isEqual)(const CFBasicHash *, uintptr_t stack_value_or_key1, uintptr_t stack_value_or_ke… 66 Boolean (*value_equal)(uintptr_t, uintptr_t) = 0; in foo3() 68 …cb.isEqual = ^(const CFBasicHash *table, uintptr_t stack_value_or_key1, uintptr_t stack_value_or_k… in foo3() 69 …return (Boolean)(uintptr_t)INVOKE_CALLBACK2(value_equal, (uintptr_t)stack_value_or_key1, (uintptr_… in foo3()
|
D | init.c | 116 uintptr_t a; 131 uintptr_t ptrasintadd1 = (uintptr_t)&a - 4; 132 uintptr_t ptrasintadd2 = (uintptr_t)&a + 4; 133 uintptr_t ptrasintadd3 = 4 + (uintptr_t)&a; 161 typedef struct { uintptr_t x : 2; } StructWithBitfield; 162 StructWithBitfield bitfieldvar = { (uintptr_t)&bitfieldvar }; // expected-error {{initializer eleme…
|
/external/llvm/lib/ExecutionEngine/ |
D | SectionMemoryManager.cpp | 22 uint8_t *SectionMemoryManager::allocateDataSection(uintptr_t Size, in allocateDataSection() 32 uint8_t *SectionMemoryManager::allocateCodeSection(uintptr_t Size, in allocateCodeSection() 40 uintptr_t Size, in allocateSection() 47 uintptr_t RequiredSize = Alignment * ((Size + Alignment - 1)/Alignment + 1); in allocateSection() 48 uintptr_t Addr = 0; in allocateSection() 54 Addr = (uintptr_t)FreeMB.Free.base(); in allocateSection() 55 uintptr_t EndOfBlock = Addr + FreeMB.Free.size(); in allocateSection() 57 Addr = (Addr + Alignment - 1) & ~(uintptr_t)(Alignment - 1); in allocateSection() 68 PendingMB = sys::MemoryBlock(PendingMB.base(), Addr + Size - (uintptr_t)PendingMB.base()); in allocateSection() 102 Addr = (uintptr_t)MB.base(); in allocateSection() [all …]
|
/external/libunwind_llvm/src/ |
D | Unwind-sjlj.c | 42 uintptr_t resumeLocation; 45 uintptr_t resumeParameters[4]; 49 uintptr_t lsda; // arm offset=28 103 exception_object->private_2 = (uintptr_t) c; in unwind_phase1() 148 if ((uintptr_t) c == exception_object->private_2) in unwind_phase2() 162 if ((uintptr_t) c == exception_object->private_2) { in unwind_phase2() 349 _LIBUNWIND_EXPORT uintptr_t 359 _LIBUNWIND_EXPORT uintptr_t _Unwind_GetGR(struct _Unwind_Context *context, in _Unwind_GetGR() 370 uintptr_t new_value) { in _Unwind_SetGR() 379 _LIBUNWIND_EXPORT uintptr_t _Unwind_GetIP(struct _Unwind_Context *context) { in _Unwind_GetIP() [all …]
|
D | AddressSpace.hpp | 28 bool checkKeyMgrRegisteredFDEs(uintptr_t targetAddr, void *&fde); 81 uintptr_t dso_base; 84 uintptr_t dwarf_section; 85 uintptr_t dwarf_section_length; 88 uintptr_t dwarf_index_section; 89 uintptr_t dwarf_index_section_length; 92 uintptr_t compact_unwind_section; 93 uintptr_t compact_unwind_section_length; 96 uintptr_t arm_section; 97 uintptr_t arm_section_length; [all …]
|
/external/llvm/unittests/ExecutionEngine/MCJIT/ |
D | MCJITCAPITest.cpp | 33 static uint8_t *roundTripAllocateCodeSection(void *object, uintptr_t size, in roundTripAllocateCodeSection() 42 static uint8_t *roundTripAllocateDataSection(void *object, uintptr_t size, in roundTripAllocateDataSection() 77 uintptr_t ReservedCodeSize; 78 uintptr_t UsedCodeSize; 79 uintptr_t ReservedDataSizeRO; 80 uintptr_t UsedDataSizeRO; 81 uintptr_t ReservedDataSizeRW; 82 uintptr_t UsedDataSizeRW; 91 void reserveAllocationSpace(uintptr_t CodeSize, uintptr_t DataSizeRO, in reserveAllocationSpace() 92 uintptr_t DataSizeRW) override { in reserveAllocationSpace() [all …]
|
/external/jemalloc/test/integration/ |
D | iterate.c | 5 int je_iterate(uintptr_t, size_t, void (*)(uintptr_t, size_t, void*), void*); 9 static uintptr_t alloc_find; 13 static void callback(uintptr_t ptr, size_t size, void* arg) { in callback() 35 alloc_find = (uintptr_t)ptr; in TEST_BEGIN() 41 assert(je_iterate((uintptr_t)ptr, sz, callback, NULL) == 0); in TEST_BEGIN() 65 alloc_find = (uintptr_t)ptr; in TEST_BEGIN() 71 je_iterate((uintptr_t)ptr, sz, callback, NULL); in TEST_BEGIN() 97 alloc_find = (uintptr_t)ptr; in TEST_BEGIN() 103 assert(je_iterate((uintptr_t)ptr, sz, callback, NULL) == 0); in TEST_BEGIN()
|
/external/compiler-rt/include/sanitizer/ |
D | coverage_interface.h | 32 uintptr_t __sanitizer_get_total_unique_coverage(); 34 uintptr_t __sanitizer_get_total_unique_caller_callee_pairs(); 42 uintptr_t __sanitizer_get_coverage_guards(uintptr_t **data); 53 uintptr_t __sanitizer_get_number_of_counters(); 59 uintptr_t
|