/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/asan/TestCases/ |
D | coverage-pc-buffer.cc | 15 void assertNotZeroPcs(uintptr_t *buf, uintptr_t size) { in assertNotZeroPcs() 17 for (uintptr_t i = 0; i < size; ++i) in assertNotZeroPcs() 23 uintptr_t *buf = NULL; in main() 24 uintptr_t sz = __sanitizer_get_coverage_pc_buffer(&buf); in main() 30 uintptr_t *buf = NULL; in main() 31 uintptr_t sz = __sanitizer_get_coverage_pc_buffer(&buf); in main() 35 uintptr_t *buf1 = NULL; in main() 36 uintptr_t sz1 = __sanitizer_get_coverage_pc_buffer(&buf1); in main() 43 uintptr_t *buf = NULL; in main() 44 uintptr_t sz = __sanitizer_get_coverage_pc_buffer(&buf); in main() [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/swiftshader/third_party/LLVM/include/llvm/ADT/ |
D | SmallBitVector.h | 34 uintptr_t X; 38 NumBaseBits = sizeof(uintptr_t) * CHAR_BIT, 84 return X & uintptr_t(1); in isSmall() 92 void switchToSmall(uintptr_t NewSmallBits, size_t NewSize) { in switchToSmall() 99 X = reinterpret_cast<uintptr_t>(BV); in switchToLarge() 105 uintptr_t getSmallRawBits() const { in getSmallRawBits() 110 void setSmallRawBits(uintptr_t NewRawBits) { in setSmallRawBits() 112 X = (NewRawBits << 1) | uintptr_t(1); in setSmallRawBits() 125 uintptr_t getSmallBits() const { in getSmallBits() 126 return getSmallRawBits() & ~(~uintptr_t(0) << getSmallSize()); in getSmallBits() [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/llvm/include/llvm/ADT/ |
D | SmallBitVector.h | 32 uintptr_t X; 36 NumBaseBits = sizeof(uintptr_t) * CHAR_BIT, 88 return X & uintptr_t(1); in isSmall() 96 void switchToSmall(uintptr_t NewSmallBits, size_t NewSize) { in switchToSmall() 103 X = reinterpret_cast<uintptr_t>(BV); in switchToLarge() 109 uintptr_t getSmallRawBits() const { in getSmallRawBits() 114 void setSmallRawBits(uintptr_t NewRawBits) { in setSmallRawBits() 116 X = (NewRawBits << 1) | uintptr_t(1); in setSmallRawBits() 129 uintptr_t getSmallBits() const { in getSmallBits() 130 return getSmallRawBits() & ~(~uintptr_t(0) << getSmallSize()); in getSmallBits() [all …]
|
/external/compiler-rt/lib/builtins/ |
D | emutls.c | 39 uintptr_t index; /* data[index-1] is the object address */ 55 base = (void*)(((uintptr_t)(object + EXTRA_ALIGN_PTR_BYTES)) in emutls_memalign_alloc() 56 & ~(uintptr_t)(align - 1)); in emutls_memalign_alloc() 76 COMPILE_TIME_ASSERT(sizeof(uintptr_t) == sizeof(gcc_pointer)); in emutls_allocate_object() 77 COMPILE_TIME_ASSERT(sizeof(uintptr_t) == sizeof(void*)); in emutls_allocate_object() 101 uintptr_t size; /* number of elements in the 'data' array */ 109 uintptr_t i; in emutls_key_destructor() 123 static __inline uintptr_t emutls_get_index(__emutls_control *control) { in emutls_get_index() 124 uintptr_t index = __atomic_load_n(&control->object.index, __ATOMIC_ACQUIRE); in emutls_get_index() 141 uintptr_t size) { in emutls_check_array_set_size() [all …]
|
D | clear_cache.c | 21 uint32_t FlushInstructionCache(uintptr_t hProcess, void *lpBaseAddress, 22 uintptr_t dwSize); 23 uintptr_t GetCurrentProcess(void); 106 arg.addr = (uintptr_t)start; in __clear_cache() 107 arg.len = (uintptr_t)end - (uintptr_t)start; in __clear_cache() 126 const uintptr_t start_int = (uintptr_t) start; in __clear_cache() 127 const uintptr_t end_int = (uintptr_t) end; in __clear_cache() 130 const uintptr_t address_range_limit = 256; in __clear_cache() 140 uint64_t xstart = (uint64_t)(uintptr_t) start; in __clear_cache() 141 uint64_t xend = (uint64_t)(uintptr_t) end; in __clear_cache()
|
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() 198 uintptr_t pc = _Unwind_GetIP(context)-1; in __gcc_personality_sj0() [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/CodeGen/ |
D | MachineCodeEmitter.h | 164 if(Alignment <= (uintptr_t)(BufferEnd-CurBufferPtr)) { in emitAlignment() 167 (uint8_t*)(((uintptr_t)CurBufferPtr+Alignment-1) & in emitAlignment() 168 ~(uintptr_t)(Alignment-1)); in emitAlignment() 233 void emitInt32At(uintptr_t *Addr, uintptr_t Value) { in emitInt32At() 234 if (Addr >= (uintptr_t*)BufferBegin && Addr < (uintptr_t*)BufferEnd) in emitInt32At() 239 void emitInt64At(uintptr_t *Addr, uintptr_t Value) { in emitInt64At() 240 if (Addr >= (uintptr_t*)BufferBegin && Addr < (uintptr_t*)BufferEnd) in emitInt64At() 256 virtual void *allocateSpace(uintptr_t Size, unsigned Alignment) { in allocateSpace() 261 if (Size >= (uintptr_t)(BufferEnd-CurBufferPtr)) { in allocateSpace() 281 virtual uintptr_t getCurrentPCValue() const { in getCurrentPCValue() [all …]
|
D | JITCodeEmitter.h | 152 uint8_t *NewPtr = (uint8_t*)RoundUpToAlignment((uintptr_t)CurBufferPtr, in emitAlignment() 161 uint8_t *NewPtr = (uint8_t*)RoundUpToAlignment((uintptr_t)CurBufferPtr, in emitAlignmentWithFill() 238 void emitInt32At(uintptr_t *Addr, uintptr_t Value) { in emitInt32At() 239 if (Addr >= (uintptr_t*)BufferBegin && Addr < (uintptr_t*)BufferEnd) in emitInt32At() 244 void emitInt64At(uintptr_t *Addr, uintptr_t Value) { in emitInt64At() 245 if (Addr >= (uintptr_t*)BufferBegin && Addr < (uintptr_t*)BufferEnd) in emitInt64At() 256 virtual void *allocateSpace(uintptr_t Size, unsigned Alignment) { in allocateSpace() 261 if (Size >= (uintptr_t)(BufferEnd-CurBufferPtr)) { in allocateSpace() 276 virtual void *allocateGlobal(uintptr_t Size, unsigned Alignment) = 0; 286 virtual uintptr_t getCurrentPCValue() const { in getCurrentPCValue() [all …]
|
D | ObjectCodeEmitter.h | 38 std::vector<uintptr_t> MBBLocations; 42 std::vector<uintptr_t> LabelLocations; 46 std::vector<uintptr_t> CPLocations; 50 std::vector<uintptr_t> CPSections; 54 std::vector<uintptr_t> JTLocations; 102 uintptr_t getCurrentPCValue() const; 106 uintptr_t getCurrentPCOffset() const; 138 virtual uintptr_t getMachineBasicBlockAddress(MachineBasicBlock *MBB) const; 146 virtual uintptr_t getJumpTableEntryAddress(unsigned Index) const; 155 virtual uintptr_t getConstantPoolEntryAddress(unsigned Index) const; [all …]
|
/external/jemalloc/src/ |
D | chunk_dss.c | 78 if ((uintptr_t)max_prev > (uintptr_t)max_cur) { in chunk_dss_max_update() 137 cpad = (void *)((uintptr_t)dss_max + gap_size); in chunk_alloc_dss() 138 ret = (void *)ALIGNMENT_CEILING((uintptr_t)dss_max, in chunk_alloc_dss() 140 cpad_size = (uintptr_t)ret - (uintptr_t)cpad; in chunk_alloc_dss() 141 dss_next = (void *)((uintptr_t)ret + size); in chunk_alloc_dss() 142 if ((uintptr_t)ret < (uintptr_t)dss_max || in chunk_alloc_dss() 143 (uintptr_t)dss_next < (uintptr_t)dss_max) in chunk_alloc_dss() 202 return ((uintptr_t)chunk >= (uintptr_t)dss_base && (uintptr_t)chunk < in chunk_in_dss_helper() 203 (uintptr_t)max); in chunk_in_dss_helper()
|
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 …]
|
/external/v8/src/ |
D | execution.h | 63 void SetStackLimit(uintptr_t limit); 108 uintptr_t climit() { return thread_local_.climit(); } in climit() 109 uintptr_t jslimit() { return thread_local_.jslimit(); } in jslimit() 113 uintptr_t real_climit() { in real_climit() 116 uintptr_t real_jslimit() { in real_jslimit() 156 static const uintptr_t kInterruptLimit = V8_UINT64_C(0xfffffffffffffffe); 157 static const uintptr_t kIllegalLimit = V8_UINT64_C(0xfffffffffffffff8); 159 static const uintptr_t kInterruptLimit = 0xfffffffe; 160 static const uintptr_t kIllegalLimit = 0xfffffff8; 185 uintptr_t real_jslimit_; // Actual JavaScript stack limit set for the VM. [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/libchrome/base/debug/ |
D | stack_trace.cc | 52 static uintptr_t GetStackEnd() { in GetStackEnd() 58 static uintptr_t main_stack_end = 0; in GetStackEnd() 66 uintptr_t stack_begin = 0; in GetStackEnd() 79 uintptr_t stack_end = stack_begin + stack_size; in GetStackEnd() 94 uintptr_t sp = reinterpret_cast<uintptr_t>(__builtin_frame_address(0)); in TraceStackFramePointers() 97 uintptr_t stack_end = GetStackEnd(); in TraceStackFramePointers() 106 sp -= sizeof(uintptr_t); in TraceStackFramePointers() 111 if (sp + 2 * sizeof(uintptr_t) > stack_end) { in TraceStackFramePointers() 125 uintptr_t next_sp = reinterpret_cast<const uintptr_t*>(sp)[0]; in TraceStackFramePointers()
|
/external/swiftshader/third_party/LLVM/unittests/Support/ |
D | AllocatorTest.cpp | 65 uintptr_t a; in TEST() 66 a = (uintptr_t)Alloc.Allocate(1, 2); in TEST() 68 a = (uintptr_t)Alloc.Allocate(1, 4); in TEST() 70 a = (uintptr_t)Alloc.Allocate(1, 8); in TEST() 72 a = (uintptr_t)Alloc.Allocate(1, 16); in TEST() 74 a = (uintptr_t)Alloc.Allocate(1, 32); in TEST() 76 a = (uintptr_t)Alloc.Allocate(1, 64); in TEST() 78 a = (uintptr_t)Alloc.Allocate(1, 128); in TEST() 111 MemSlab *Slab = (MemSlab*)(((uintptr_t)MemBase+sizeof(void*)+Alignment-1) & in Allocate() 112 ~(uintptr_t)(Alignment - 1)); in Allocate() [all …]
|
/external/llvm/unittests/ADT/ |
D | PointerEmbeddedIntTest.cpp | 21 EXPECT_EQ(sizeof(uintptr_t) * CHAR_BIT - CHAR_BIT, in TEST() 51 PointerEmbeddedInt<uintptr_t, CHAR_BIT> U = 42, USaturated = 255; in TEST() 61 PointerEmbeddedInt<uintptr_t, std::numeric_limits<uintptr_t>::digits - 1> in TEST() 62 UMax = std::numeric_limits<uintptr_t>::max() >> 1, in TEST() 63 UMin = std::numeric_limits<uintptr_t>::min() >> 1; in TEST() 64 EXPECT_EQ(std::numeric_limits<uintptr_t>::max() >> 1, UMax); in TEST() 65 EXPECT_EQ(std::numeric_limits<uintptr_t>::min() >> 1, UMin); in TEST() 73 PointerEmbeddedInt<uintptr_t, std::numeric_limits<uintptr_t>::digits - 1> in TEST() 74 Max = std::numeric_limits<uintptr_t>::max() >> 1; in TEST() 76 EXPECT_EQ(std::numeric_limits<uintptr_t>::max() >> 1, in TEST()
|
/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); 49 uintptr_t __sanitizer_get_coverage_pc_buffer(uintptr_t **data); 60 uintptr_t __sanitizer_get_number_of_counters(); 66 uintptr_t
|
/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/strace/tests/ |
D | file_handle.c | 100 (struct file_handle *) (uintptr_t) handle; in do_name_to_handle_at() 101 int *mount_id_ptr = (int *) (uintptr_t) mount_id; in do_name_to_handle_at() 129 (struct file_handle *) (uintptr_t) handle; in do_open_by_handle_at() 221 { (kernel_ulong_t) (uintptr_t) (bogus_path1 + PATH1_SIZE), in main() 223 { (kernel_ulong_t) (uintptr_t) bogus_path1, bogus_path1_addr }, in main() 224 { (kernel_ulong_t) (uintptr_t) bogus_path2, "\"" STR64 "\"" }, in main() 227 { (uintptr_t) (handle_0 + sizeof(struct file_handle)), in main() 229 { (uintptr_t) handle_0, "{handle_bytes=256}" }, in main() 230 { (uintptr_t) handle_8, "{handle_bytes=0}" }, in main() 231 { (uintptr_t) handle_128, "{handle_bytes=128}" }, in main() [all …]
|
/external/strace/tests-m32/ |
D | file_handle.c | 100 (struct file_handle *) (uintptr_t) handle; in do_name_to_handle_at() 101 int *mount_id_ptr = (int *) (uintptr_t) mount_id; in do_name_to_handle_at() 129 (struct file_handle *) (uintptr_t) handle; in do_open_by_handle_at() 221 { (kernel_ulong_t) (uintptr_t) (bogus_path1 + PATH1_SIZE), in main() 223 { (kernel_ulong_t) (uintptr_t) bogus_path1, bogus_path1_addr }, in main() 224 { (kernel_ulong_t) (uintptr_t) bogus_path2, "\"" STR64 "\"" }, in main() 227 { (uintptr_t) (handle_0 + sizeof(struct file_handle)), in main() 229 { (uintptr_t) handle_0, "{handle_bytes=256}" }, in main() 230 { (uintptr_t) handle_8, "{handle_bytes=0}" }, in main() 231 { (uintptr_t) handle_128, "{handle_bytes=128}" }, in main() [all …]
|
/external/strace/tests-mx32/ |
D | file_handle.c | 100 (struct file_handle *) (uintptr_t) handle; in do_name_to_handle_at() 101 int *mount_id_ptr = (int *) (uintptr_t) mount_id; in do_name_to_handle_at() 129 (struct file_handle *) (uintptr_t) handle; in do_open_by_handle_at() 221 { (kernel_ulong_t) (uintptr_t) (bogus_path1 + PATH1_SIZE), in main() 223 { (kernel_ulong_t) (uintptr_t) bogus_path1, bogus_path1_addr }, in main() 224 { (kernel_ulong_t) (uintptr_t) bogus_path2, "\"" STR64 "\"" }, in main() 227 { (uintptr_t) (handle_0 + sizeof(struct file_handle)), in main() 229 { (uintptr_t) handle_0, "{handle_bytes=256}" }, in main() 230 { (uintptr_t) handle_8, "{handle_bytes=0}" }, in main() 231 { (uintptr_t) handle_128, "{handle_bytes=128}" }, in main() [all …]
|