/external/chromium_org/third_party/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/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 | 45 uintptr_t private_1; 46 uintptr_t private_2; 50 COMPILER_RT_ABI void _Unwind_SetGR(_Unwind_Context_t c, int i, uintptr_t n); 51 COMPILER_RT_ABI void _Unwind_SetIP(_Unwind_Context_t, uintptr_t new_value); 52 COMPILER_RT_ABI uintptr_t _Unwind_GetIP(_Unwind_Context_t context); 53 COMPILER_RT_ABI uintptr_t _Unwind_GetRegionStart(_Unwind_Context_t context); 83 static uintptr_t readULEB128(const uint8_t** data) in readULEB128() 85 uintptr_t result = 0; in readULEB128() 86 uintptr_t shift = 0; in readULEB128() 99 static uintptr_t readEncodedPointer(const uint8_t** data, uint8_t encoding) in readEncodedPointer() [all …]
|
/external/jemalloc/include/jemalloc/internal/ |
D | prof.h | 48 #define PROF_TDATA_STATE_REINCARNATED ((prof_tdata_t *)(uintptr_t)1) 49 #define PROF_TDATA_STATE_PURGATORY ((prof_tdata_t *)(uintptr_t)2) 254 ret = (prof_thr_cnt_t *)(uintptr_t)1U; \ 342 if ((uintptr_t)prof_tdata <= (uintptr_t)PROF_TDATA_STATE_MAX) in prof_sample_accum_update() 402 assert((uintptr_t)cnt == (uintptr_t)1U); in prof_malloc() 405 if ((uintptr_t)cnt > (uintptr_t)1U) in prof_malloc() 408 prof_ctx_set(ptr, (prof_ctx_t *)(uintptr_t)1U); in prof_malloc() 418 assert(ptr != NULL || (uintptr_t)cnt <= (uintptr_t)1U); in prof_realloc() 431 cnt = (prof_thr_cnt_t *)(uintptr_t)1U; in prof_realloc() 435 if ((uintptr_t)old_ctx > (uintptr_t)1U) { in prof_realloc() [all …]
|
/external/libcxxabi/include/ |
D | unwind.h | 126 uintptr_t private_1; // non-zero means forced unwind 127 uintptr_t private_2; // holds sp that phase1 found for phase2 to use 210 static inline uintptr_t _Unwind_GetGR(struct _Unwind_Context* context, in _Unwind_GetGR() 212 uintptr_t value = 0; in _Unwind_GetGR() 218 uintptr_t new_value) { in _Unwind_SetGR() 223 static inline uintptr_t _Unwind_GetIP(struct _Unwind_Context* context) { in _Unwind_GetIP() 225 return (_Unwind_GetGR(context, 15) & (~(uintptr_t)0x1)); in _Unwind_GetIP() 229 uintptr_t new_value) { in _Unwind_SetIP() 230 uintptr_t thumb_bit = _Unwind_GetGR(context, 15) & ((uintptr_t)0x1); in _Unwind_SetIP() 234 extern uintptr_t _Unwind_GetGR(struct _Unwind_Context *context, int index); [all …]
|
/external/jemalloc/test/unit/ |
D | rtree.c | 7 for (i = 1; i <= (sizeof(uintptr_t) << 3); i++) { in TEST_BEGIN() 20 for (i = 1; i <= (sizeof(uintptr_t) << 3); i++) { in TEST_BEGIN() 27 rtree_set(rtree, ~((uintptr_t)0), 1); in TEST_BEGIN() 28 assert_u_eq(rtree_get(rtree, ~((uintptr_t)0)), 1, in TEST_BEGIN() 40 for (i = 1; i < (sizeof(uintptr_t) << 3); i++) { in TEST_BEGIN() 41 uintptr_t keys[] = {0, 1, in TEST_BEGIN() 42 (((uintptr_t)1) << (sizeof(uintptr_t)*8-i)) - 1}; in TEST_BEGIN() 45 for (j = 0; j < sizeof(keys)/sizeof(uintptr_t); j++) { in TEST_BEGIN() 47 for (k = 0; k < sizeof(keys)/sizeof(uintptr_t); k++) { in TEST_BEGIN() 56 (((uintptr_t)1) << (sizeof(uintptr_t)*8-i))), 0, in TEST_BEGIN() [all …]
|
/external/valgrind/main/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/llvm/include/llvm/CodeGen/ |
D | MachineCodeEmitter.h | 166 if(Alignment <= (uintptr_t)(BufferEnd-CurBufferPtr)) { in emitAlignment() 169 (uint8_t*)(((uintptr_t)CurBufferPtr+Alignment-1) & in emitAlignment() 170 ~(uintptr_t)(Alignment-1)); in emitAlignment() 235 void emitInt32At(uintptr_t *Addr, uintptr_t Value) { in emitInt32At() 236 if (Addr >= (uintptr_t*)BufferBegin && Addr < (uintptr_t*)BufferEnd) in emitInt32At() 241 void emitInt64At(uintptr_t *Addr, uintptr_t Value) { in emitInt64At() 242 if (Addr >= (uintptr_t*)BufferBegin && Addr < (uintptr_t*)BufferEnd) in emitInt64At() 258 virtual void *allocateSpace(uintptr_t Size, unsigned Alignment) { in allocateSpace() 263 if (Size >= (uintptr_t)(BufferEnd-CurBufferPtr)) { in allocateSpace() 283 virtual uintptr_t getCurrentPCValue() const { in getCurrentPCValue() [all …]
|
D | JITCodeEmitter.h | 153 uint8_t *NewPtr = (uint8_t*)RoundUpToAlignment((uintptr_t)CurBufferPtr, in emitAlignment() 162 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 void *allocateSpace(uintptr_t Size, unsigned Alignment) override { in allocateSpace() 261 if (Size >= (uintptr_t)(BufferEnd-CurBufferPtr)) { in allocateSpace() 276 virtual void *allocateGlobal(uintptr_t Size, unsigned Alignment) = 0; 286 uintptr_t getCurrentPCValue() const override { in getCurrentPCValue() [all …]
|
/external/jemalloc/src/ |
D | chunk_dss.c | 109 cpad = (void *)((uintptr_t)dss_max + gap_size); in chunk_alloc_dss() 110 ret = (void *)ALIGNMENT_CEILING((uintptr_t)dss_max, in chunk_alloc_dss() 112 cpad_size = (uintptr_t)ret - (uintptr_t)cpad; in chunk_alloc_dss() 113 dss_next = (void *)((uintptr_t)ret + size); in chunk_alloc_dss() 114 if ((uintptr_t)ret < (uintptr_t)dss_max || in chunk_alloc_dss() 115 (uintptr_t)dss_next < (uintptr_t)dss_max) { in chunk_alloc_dss() 150 if ((uintptr_t)chunk >= (uintptr_t)dss_base in chunk_in_dss() 151 && (uintptr_t)chunk < (uintptr_t)dss_max) in chunk_in_dss()
|
D | extent.c | 15 uintptr_t a_addr = (uintptr_t)a->addr; in extent_szad_comp() 16 uintptr_t b_addr = (uintptr_t)b->addr; in extent_szad_comp() 31 uintptr_t a_addr = (uintptr_t)a->addr; in extent_ad_comp() 32 uintptr_t b_addr = (uintptr_t)b->addr; in extent_ad_comp()
|
/external/chromium_org/third_party/tcmalloc/chromium/src/tests/ |
D | stack_trace_table_test.cc | 15 const uintptr_t* expected, int len) { in CheckTracesAndReset() 18 CHECK_EQ(reinterpret_cast<uintptr_t>(entries[i]), expected[i]); in CheckTracesAndReset() 40 static const uintptr_t k1[] = {0}; in main() 44 t1.size = static_cast<uintptr_t>(1024); in main() 45 t1.depth = static_cast<uintptr_t>(2); in main() 51 t2.size = static_cast<uintptr_t>(512); in main() 52 t2.depth = static_cast<uintptr_t>(2); in main() 60 static const uintptr_t k2[] = {1, 1024, 2, 1, 2, 0}; in main() 68 static const uintptr_t k3[] = {1, 1024, 2, 1, 2, 1, 512, 2, 2, 1, 0}; in main() 77 static const uintptr_t k4[] = {2, 2048, 2, 1, 2, 1, 512, 2, 2, 1, 0}; in main() [all …]
|
/external/chromium_org/third_party/tcmalloc/vendor/src/tests/ |
D | stack_trace_table_test.cc | 15 const uintptr_t* expected, int len) { in CheckTracesAndReset() 18 CHECK_EQ(reinterpret_cast<uintptr_t>(entries[i]), expected[i]); in CheckTracesAndReset() 40 static const uintptr_t k1[] = {0}; in main() 44 t1.size = static_cast<uintptr_t>(1024); in main() 45 t1.depth = static_cast<uintptr_t>(2); in main() 51 t2.size = static_cast<uintptr_t>(512); in main() 52 t2.depth = static_cast<uintptr_t>(2); in main() 60 static const uintptr_t k2[] = {1, 1024, 2, 1, 2, 0}; in main() 68 static const uintptr_t k3[] = {1, 1024, 2, 1, 2, 1, 512, 2, 2, 1, 0}; in main() 77 static const uintptr_t k4[] = {2, 2048, 2, 1, 2, 1, 512, 2, 2, 1, 0}; in main() [all …]
|
/external/llvm/include/llvm/ADT/ |
D | SmallBitVector.h | 35 uintptr_t X; 39 NumBaseBits = sizeof(uintptr_t) * CHAR_BIT, 86 return X & uintptr_t(1); in isSmall() 94 void switchToSmall(uintptr_t NewSmallBits, size_t NewSize) { in switchToSmall() 101 X = reinterpret_cast<uintptr_t>(BV); in switchToLarge() 107 uintptr_t getSmallRawBits() const { in getSmallRawBits() 112 void setSmallRawBits(uintptr_t NewRawBits) { in setSmallRawBits() 114 X = (NewRawBits << 1) | uintptr_t(1); in setSmallRawBits() 127 uintptr_t getSmallBits() const { in getSmallBits() 128 return getSmallRawBits() & ~(~uintptr_t(0) << getSmallSize()); in getSmallBits() [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/qemu/include/exec/ |
D | exec-all.h | 87 bool cpu_restore_state(CPUArchState *env, uintptr_t searched_pc); 90 void QEMU_NORETURN cpu_io_recompile(CPUArchState *env, uintptr_t retaddr); 96 int page_unprotect(target_ulong address, uintptr_t pc, void *puc); 176 uintptr_t tb_next[2]; /* address of jump generated code */ 239 static inline void tb_set_jmp_target1(uintptr_t jmp_addr, uintptr_t addr) in tb_set_jmp_target1() 249 static inline void tb_set_jmp_target1(uintptr_t jmp_addr, uintptr_t addr) in tb_set_jmp_target1() 256 void aarch64_tb_set_jmp_target(uintptr_t jmp_addr, uintptr_t addr); 259 static inline void tb_set_jmp_target1(uintptr_t jmp_addr, uintptr_t addr) in tb_set_jmp_target1() 283 void tb_set_jmp_target1(uintptr_t jmp_addr, uintptr_t addr); 289 int n, uintptr_t addr) in tb_set_jmp_target() [all …]
|
/external/chromium_org/third_party/webrtc/modules/audio_processing/aecm/ |
D | aecm_core_neon.c | 59 assert((uintptr_t)p_time_signal % 8 == 0); in WebRtcAecm_WindowAndFFTNeon() 60 assert((uintptr_t)freq_signal % 32 == 0); in WebRtcAecm_WindowAndFFTNeon() 61 assert((uintptr_t)p_hanning % 8 == 0); in WebRtcAecm_WindowAndFFTNeon() 62 assert((uintptr_t)p_fft % 16 == 0); in WebRtcAecm_WindowAndFFTNeon() 124 assert((uintptr_t)efw % 32 == 0); in WebRtcAecm_InverseFFTAndWindowNeon() 125 assert((uintptr_t)fft % 16 == 0); in WebRtcAecm_InverseFFTAndWindowNeon() 126 assert((uintptr_t)output% 8 == 0); in WebRtcAecm_InverseFFTAndWindowNeon() 127 assert((uintptr_t)WebRtcAecm_kSqrtHanning % 8 == 0); in WebRtcAecm_InverseFFTAndWindowNeon() 128 assert((uintptr_t)kSqrtHanningReversed % 8 == 0); in WebRtcAecm_InverseFFTAndWindowNeon() 129 assert((uintptr_t)(aecm->outBuf) % 8 == 0); in WebRtcAecm_InverseFFTAndWindowNeon() [all …]
|
/external/chromium_org/third_party/WebKit/Source/wtf/ |
D | BitVector.h | 116 …return !!(bits()[bit / bitsInPointer()] & (static_cast<uintptr_t>(1) << (bit & (bitsInPointer() - … in quickGet() 122 … bits()[bit / bitsInPointer()] |= (static_cast<uintptr_t>(1) << (bit & (bitsInPointer() - 1))); in quickSet() 128 … bits()[bit / bitsInPointer()] &= ~(static_cast<uintptr_t>(1) << (bit & (bitsInPointer() - 1))); in quickClear() 191 static uintptr_t makeInlineBits(uintptr_t bits) in makeInlineBits() 193 ASSERT(!(bits & (static_cast<uintptr_t>(1) << maxInlineBits()))); in makeInlineBits() 194 return bits | (static_cast<uintptr_t>(1) << maxInlineBits()); in makeInlineBits() 201 uintptr_t* bits() { return bitwise_cast<uintptr_t*>(this + 1); } in bits() 202 const uintptr_t* bits() const { return bitwise_cast<const uintptr_t*>(this + 1); } in bits() 225 uintptr_t* bits() in bits() 232 const uintptr_t* bits() const in bits() [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/vixl/src/a64/ |
D | cpu-a64.cc | 84 uintptr_t start = reinterpret_cast<uintptr_t>(address); in EnsureIAndDCacheCoherency() 86 uintptr_t dsize = static_cast<uintptr_t>(dcache_line_size_); in EnsureIAndDCacheCoherency() 87 uintptr_t isize = static_cast<uintptr_t>(icache_line_size_); in EnsureIAndDCacheCoherency() 91 uintptr_t dstart = start & ~(dsize - 1); in EnsureIAndDCacheCoherency() 92 uintptr_t istart = start & ~(isize - 1); in EnsureIAndDCacheCoherency() 93 uintptr_t end = start + length; in EnsureIAndDCacheCoherency()
|
/external/chromium_org/mojo/public/cpp/bindings/lib/ |
D | bounds_checker.cc | 17 : data_begin_(reinterpret_cast<uintptr_t>(data)), in BoundsChecker() 40 uintptr_t begin = reinterpret_cast<uintptr_t>(position); in ClaimMemory() 41 uintptr_t end = begin + num_bytes; in ClaimMemory() 66 uintptr_t begin = reinterpret_cast<uintptr_t>(position); in IsValidRange() 67 uintptr_t end = begin + num_bytes; in IsValidRange() 72 bool BoundsChecker::InternalIsValidRange(uintptr_t begin, uintptr_t end) const { in InternalIsValidRange()
|
/external/skia/include/core/ |
D | SkChecksum.h | 30 ROTL = sizeof(uintptr_t) * 8 - ROTR, 31 HALFBITS = sizeof(uintptr_t) * 4 34 static inline uintptr_t Mash(uintptr_t total, uintptr_t value) { in Mash() 97 uintptr_t result = 0; in Compute() 98 const uintptr_t* ptr = reinterpret_cast<const uintptr_t*>(data); in Compute() 105 size_t n4 = size / (sizeof(uintptr_t) << 2); in Compute() 112 size &= ((sizeof(uintptr_t) << 2) - 1); in Compute()
|
/external/chromium_org/third_party/skia/include/core/ |
D | SkChecksum.h | 30 ROTL = sizeof(uintptr_t) * 8 - ROTR, 31 HALFBITS = sizeof(uintptr_t) * 4 34 static inline uintptr_t Mash(uintptr_t total, uintptr_t value) { in Mash() 97 uintptr_t result = 0; in Compute() 98 const uintptr_t* ptr = reinterpret_cast<const uintptr_t*>(data); in Compute() 105 size_t n4 = size / (sizeof(uintptr_t) << 2); in Compute() 112 size &= ((sizeof(uintptr_t) << 2) - 1); in Compute()
|
/external/chromium_org/third_party/yasm/source/patched-yasm/libyasm/ |
D | insn.h | 45 uintptr_t segreg; 97 uintptr_t reg; /**< Arch data for reg/segreg. */ 104 uintptr_t targetmod; /**< Arch target modifier, 0 if none. */ 144 /*@null@*/ uintptr_t *prefixes; 147 /*@null@*/ uintptr_t *segregs; 161 void yasm_ea_set_segreg(yasm_effaddr *ea, uintptr_t segreg); 168 yasm_insn_operand *yasm_operand_create_reg(uintptr_t reg); 175 yasm_insn_operand *yasm_operand_create_segreg(uintptr_t segreg); 226 void yasm_insn_add_prefix(yasm_insn *insn, uintptr_t prefix); 233 void yasm_insn_add_seg_prefix(yasm_insn *insn, uintptr_t segreg);
|
/external/compiler-rt/test/msan/ |
D | wrap_indirect_calls_in_rtl.cc | 12 extern "C" void __msan_set_indirect_call_wrapper(uintptr_t); 40 extern "C" uintptr_t my_wrapper(uintptr_t f) { in my_wrapper() 41 if (f == (uintptr_t)ThreadFn) in my_wrapper() 42 return (uintptr_t)&ThreadFn2; in my_wrapper() 44 return (uintptr_t)my_gettimeofday; in my_wrapper() 46 return (uintptr_t)my_lgamma; in my_wrapper() 51 __msan_set_indirect_call_wrapper((uintptr_t)my_wrapper); in main()
|