/external/webrtc/src/system_wrappers/source/ |
D | aligned_malloc.cc | 71 returnValue->memoryPointer = malloc(size + sizeof(uintptr_t) + in AlignedMalloc() 81 uintptr_t alignStartPos = (uintptr_t)returnValue->memoryPointer; in AlignedMalloc() 82 alignStartPos += sizeof(uintptr_t); in AlignedMalloc() 86 uintptr_t alignedPos = (alignStartPos + alignment - 1) & ~(alignment - 1); in AlignedMalloc() 93 uintptr_t headerPos = alignedPos; in AlignedMalloc() 94 headerPos -= sizeof(uintptr_t); in AlignedMalloc() 96 uintptr_t headerValue = (uintptr_t)returnValue; in AlignedMalloc() 97 memcpy(headerPtr,&headerValue,sizeof(uintptr_t)); in AlignedMalloc() 108 uintptr_t alignedPos = (uintptr_t)memBlock; in AlignedFree() 109 uintptr_t headerPos = alignedPos - sizeof(uintptr_t); in AlignedFree() [all …]
|
/external/compiler-rt/lib/builtins/ |
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() 46 rtree_set(&rtree, ~((uintptr_t)0), &node_b); in TEST_BEGIN() 47 assert_ptr_eq(rtree_get(&rtree, ~((uintptr_t)0), true), &node_b, in TEST_BEGIN() 59 for (i = 1; i < (sizeof(uintptr_t) << 3); i++) { in TEST_BEGIN() 60 uintptr_t keys[] = {0, 1, in TEST_BEGIN() 61 (((uintptr_t)1) << (sizeof(uintptr_t)*8-i)) - 1}; in TEST_BEGIN() 68 for (j = 0; j < sizeof(keys)/sizeof(uintptr_t); j++) { in TEST_BEGIN() 70 for (k = 0; k < sizeof(keys)/sizeof(uintptr_t); k++) { in TEST_BEGIN() 79 (((uintptr_t)1) << (sizeof(uintptr_t)*8-i)), false), in TEST_BEGIN() [all …]
|
/external/jemalloc/src/ |
D | chunk_dss.c | 119 cpad = (void *)((uintptr_t)dss_max + gap_size); in chunk_alloc_dss() 120 ret = (void *)ALIGNMENT_CEILING((uintptr_t)dss_max, in chunk_alloc_dss() 122 cpad_size = (uintptr_t)ret - (uintptr_t)cpad; in chunk_alloc_dss() 123 dss_next = (void *)((uintptr_t)ret + size); in chunk_alloc_dss() 124 if ((uintptr_t)ret < (uintptr_t)dss_max || in chunk_alloc_dss() 125 (uintptr_t)dss_next < (uintptr_t)dss_max) { in chunk_alloc_dss() 164 if ((uintptr_t)chunk >= (uintptr_t)dss_base in chunk_in_dss() 165 && (uintptr_t)chunk < (uintptr_t)dss_max) in chunk_in_dss()
|
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/libcxxabi/src/Unwind/ |
D | UnwindLevel1.c | 86 (void *)exception_object, (void *)(uintptr_t)p); in unwind_phase1() 96 exception_object->private_2 = (uintptr_t)sp; in unwind_phase1() 289 (void *)exception_object, (void *)(uintptr_t)p); in unwind_phase2_forced() 397 (void *)exception_object, (void *)(uintptr_t)stop); in _Unwind_ForcedUnwind() 403 exception_object->private_1 = (uintptr_t) stop; in _Unwind_ForcedUnwind() 404 exception_object->private_2 = (uintptr_t) stop_parameter; in _Unwind_ForcedUnwind() 412 _LIBUNWIND_EXPORT uintptr_t 416 uintptr_t result = 0; in _Unwind_GetLanguageSpecificData() 418 result = (uintptr_t)frameInfo.lsda; in _Unwind_GetLanguageSpecificData() 433 _LIBUNWIND_EXPORT uintptr_t [all …]
|
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); 74 uintptr_t dso_base; 77 uintptr_t dwarf_section; 78 uintptr_t dwarf_section_length; 81 uintptr_t dwarf_index_section; 82 uintptr_t dwarf_index_section_length; 85 uintptr_t compact_unwind_section; 86 uintptr_t compact_unwind_section_length; 89 uintptr_t arm_section; 90 uintptr_t arm_section_length; [all …]
|
/external/libcxxabi/src/ |
D | cxa_personality.cpp | 178 uintptr_t 181 uintptr_t result = 0; in readULEB128() 182 uintptr_t shift = 0; in readULEB128() 188 result |= static_cast<uintptr_t>(byte & 0x7F) << shift; in readULEB128() 204 uintptr_t result = 0; in readSLEB128() 205 uintptr_t shift = 0; in readSLEB128() 211 result |= static_cast<uintptr_t>(byte & 0x7F) << shift; in readSLEB128() 216 result |= static_cast<uintptr_t>(~0) << shift; in readSLEB128() 227 uintptr_t 230 uintptr_t result = 0; in readEncodedPointer() [all …]
|
/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/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 207 extern uintptr_t _Unwind_GetGR(struct _Unwind_Context *context, int index); 209 uintptr_t new_value); 210 extern uintptr_t _Unwind_GetIP(struct _Unwind_Context *context); 211 extern void _Unwind_SetIP(struct _Unwind_Context *, uintptr_t new_value); 213 extern uintptr_t _Unwind_GetRegionStart(struct _Unwind_Context *context); 214 extern uintptr_t 257 extern uintptr_t _Unwind_GetCFA(struct _Unwind_Context *); 266 extern uintptr_t _Unwind_GetIPInfo(struct _Unwind_Context *context, [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/compiler-rt/test/msan/ |
D | mmap_below_shadow.cc | 19 uintptr_t hint = 0x4f0000000000ULL; in main() 20 const uintptr_t app_start = 0x600000000000ULL; in main() 22 uintptr_t hint = 0x4f00000000ULL; in main() 23 const uintptr_t app_start = 0x6000000000ULL; in main() 25 uintptr_t p = (uintptr_t)mmap( in main() 29 assert(p == (uintptr_t)-1 && errno == EINVAL); in main()
|
/external/v8/src/ |
D | gdb-jit.cc | 51 uintptr_t position() const { in position() 58 Slot(Writer* w, uintptr_t offset) : w_(w), offset_(offset) { } in Slot() 74 uintptr_t offset_; 85 Slot<T> SlotAt(uintptr_t offset) { in SlotAt() 97 uintptr_t slot_position = position_; in CreateSlotsHere() 103 void Ensure(uintptr_t pos) { in Ensure() 114 void Align(uintptr_t align) { in Align() 115 uintptr_t delta = position_ % align; in Align() 117 uintptr_t padding = align - delta; in Align() 122 void WriteULEB128(uintptr_t value) { in WriteULEB128() [all …]
|
/external/jemalloc/include/jemalloc/internal/ |
D | prof.h | 51 #define PROF_TDATA_STATE_REINCARNATED ((prof_tdata_t *)(uintptr_t)1) 52 #define PROF_TDATA_STATE_PURGATORY ((prof_tdata_t *)(uintptr_t)2) 423 if ((uintptr_t)tdata <= (uintptr_t)PROF_TDATA_STATE_MAX) in prof_sample_accum_update() 455 ret = (prof_tctx_t *)(uintptr_t)1U; in prof_alloc_prep() 473 if (unlikely((uintptr_t)tctx > (uintptr_t)1U)) in prof_malloc() 476 prof_tctx_set(ptr, (prof_tctx_t *)(uintptr_t)1U); in prof_malloc() 485 assert(ptr != NULL || (uintptr_t)tctx <= (uintptr_t)1U); in prof_realloc() 497 tctx = (prof_tctx_t *)(uintptr_t)1U; in prof_realloc() 501 if (unlikely((uintptr_t)old_tctx > (uintptr_t)1U)) in prof_realloc() 503 if (unlikely((uintptr_t)tctx > (uintptr_t)1U)) in prof_realloc() [all …]
|
D | rtree.h | 110 unsigned rtree_start_level(rtree_t *rtree, uintptr_t key); 111 uintptr_t rtree_subkey(rtree_t *rtree, uintptr_t key, unsigned level); 124 extent_node_t *rtree_get(rtree_t *rtree, uintptr_t key, bool dependent); 125 bool rtree_set(rtree_t *rtree, uintptr_t key, const extent_node_t *val); 130 rtree_start_level(rtree_t *rtree, uintptr_t key) in rtree_start_level() 143 JEMALLOC_INLINE uintptr_t 144 rtree_subkey(rtree_t *rtree, uintptr_t key, unsigned level) in rtree_subkey() 156 return ((uintptr_t)node > (uintptr_t)RTREE_NODE_INITIALIZING); in rtree_node_valid() 235 rtree_get(rtree_t *rtree, uintptr_t key, bool dependent) in rtree_get() 237 uintptr_t subkey; in rtree_get() [all …]
|
/external/v8/src/arm64/ |
D | cpu-arm64.cc | 56 uintptr_t start = reinterpret_cast<uintptr_t>(address); in FlushICache() 59 uintptr_t dsize = sizes.dcache_line_size(); in FlushICache() 60 uintptr_t isize = sizes.icache_line_size(); in FlushICache() 64 uintptr_t dstart = start & ~(dsize - 1); in FlushICache() 65 uintptr_t istart = start & ~(isize - 1); in FlushICache() 66 uintptr_t end = start + length; in FlushICache()
|
/external/skia/src/core/ |
D | SkChecksum.h | 32 ROTL = sizeof(uintptr_t) * 8 - ROTR, 33 HALFBITS = sizeof(uintptr_t) * 4 36 static inline uintptr_t Mash(uintptr_t total, uintptr_t value) { in Mash() 145 uintptr_t result = 0; in Compute() 146 const uintptr_t* ptr = reinterpret_cast<const uintptr_t*>(safe_data); in Compute() 153 size_t n4 = size / (sizeof(uintptr_t) << 2); in Compute() 160 size &= ((sizeof(uintptr_t) << 2) - 1); in Compute()
|
/external/google-breakpad/src/client/solaris/handler/ |
D | solaris_lwp.cc | 57 uintptr_t stack_base_address = 0; 64 uintptr_t address; 267 Lsp = (lwpstatus_t *)(uintptr_t)(Lhp + 1); in Lwp_iter_all() 268 Lpsp = (lwpsinfo_t *)(uintptr_t)(Lphp + 1); in Lwp_iter_all() 273 Lsp = (lwpstatus_t *)((uintptr_t)Lsp + Lhp->pr_entsize); in Lwp_iter_all() 281 Lpsp = (lwpsinfo_t *)((uintptr_t)Lpsp + Lphp->pr_entsize); in Lwp_iter_all() 287 uintptr_t SolarisLwp::GetLwpStackBottom(uintptr_t current_esp) const { in GetLwpStackBottom() 390 bool SolarisLwp::IsAddressMapped(uintptr_t address) const { in IsAddressMapped() 405 bool SolarisLwp::FindSigContext(uintptr_t sighandler_ebp, in FindSigContext() 407 uintptr_t previous_ebp; in FindSigContext() [all …]
|
/external/lldb/include/lldb/Core/ |
D | History.h | 99 HistorySourceUInt (const char *id_name, uintptr_t start_value = 0u) : 140 return (HistoryEvent)((uintptr_t)idx); in GetHistoryEventAtIndex() 154 uintptr_t lhs_uint = (uintptr_t)lhs; in CompareHistoryEvents() 155 uintptr_t rhs_uint = (uintptr_t)rhs; in CompareHistoryEvents() 166 return (uintptr_t)event == m_curr_id; in IsCurrentHistoryEvent() 171 uintptr_t m_curr_id; // The current value of the history unsigned unteger
|