Home
last modified time | relevance | path

Searched refs:uintptr_t (Results 1 – 25 of 474) sorted by relevance

12345678910>>...19

/openbsd/gnu/llvm/compiler-rt/lib/builtins/
H A Dclear_cache.c72 arg.len = (uintptr_t)end - (uintptr_t)start; in __clear_cache()
97 const uintptr_t start_int = (uintptr_t)start; in __clear_cache()
98 const uintptr_t end_int = (uintptr_t)end; in __clear_cache()
99 uintptr_t synci_step; in __clear_cache()
157 const size_t len = (uintptr_t)end - (uintptr_t)start; in __clear_cache()
160 const uintptr_t start_line = ((uintptr_t)start) & mask; in __clear_cache()
161 const uintptr_t end_line = ((uintptr_t)start + len + line_size - 1) & mask; in __clear_cache()
172 const size_t len = (uintptr_t)end - (uintptr_t)start; in __clear_cache()
175 const uintptr_t start_dword = ((uintptr_t)start) & mask; in __clear_cache()
176 const uintptr_t end_dword = ((uintptr_t)start + len + dword_size - 1) & mask; in __clear_cache()
[all …]
H A Demutls.c37 uintptr_t skip_destructor_rounds;
38 uintptr_t size; // number of elements in the 'data' array
76 ~(uintptr_t)(align - 1)); in emutls_memalign_alloc()
142 typedef uintptr_t gcc_word;
262 uintptr_t i; in emutls_shutdown()
282 uintptr_t index; // data[index-1] is the object address
338 static __inline uintptr_t emutls_new_data_array_size(uintptr_t index) { in emutls_new_data_array_size()
348 static __inline uintptr_t emutls_asize(uintptr_t N) { in emutls_asize()
355 emutls_get_address_array(uintptr_t index) { in emutls_get_address_array()
366 uintptr_t orig_size = array->size; in emutls_get_address_array()
[all …]
H A Dgcc_personality_v0.c71 static uintptr_t readEncodedPointer(const uint8_t **data, uint8_t encoding) { in readEncodedPointer()
73 uintptr_t result = 0; in readEncodedPointer()
81 result = *((const uintptr_t *)p); in readEncodedPointer()
82 p += sizeof(uintptr_t); in readEncodedPointer()
124 result += (uintptr_t)(*data); in readEncodedPointer()
138 result = *((const uintptr_t *)result); in readEncodedPointer()
207 uintptr_t pc = (uintptr_t)_Unwind_GetIP(context) - 1; in __gcc_personality_sj0()
208 uintptr_t funcStart = (uintptr_t)_Unwind_GetRegionStart(context); in __gcc_personality_sj0()
209 uintptr_t pcOffset = pc - funcStart; in __gcc_personality_sj0()
227 uintptr_t start = readEncodedPointer(&p, callSiteEncoding); in __gcc_personality_sj0()
[all …]
/openbsd/gnu/llvm/compiler-rt/lib/gwp_asan/tests/
H A Dcompression.cpp18 uintptr_t Uncompressed = 0x00; in TEST()
34 uintptr_t Uncompressed = 0x40; in TEST()
139 uintptr_t *Uncompressed = in runPackUnpack()
140 static_cast<uintptr_t *>(alloca(NumEntries * sizeof(uintptr_t))); in runPackUnpack()
163 uintptr_t Uncompressed[2]; in TEST()
172 uintptr_t Uncompressed[2]; in TEST()
180 uintptr_t Test[] = {1, 2, 3}; in TEST()
185 uintptr_t Test[] = {3, 2, 1}; in TEST()
224 uintptr_t Uncompressed; in TEST()
232 uintptr_t Uncompressed; in TEST()
[all …]
H A Dcrash_handler_api.cpp24 size_t metadata(uintptr_t Addr, uintptr_t Size, bool IsDeallocated) { in metadata()
63 uintptr_t Buffer[kNumBacktraceConstants]; in checkBacktrace()
104 uintptr_t InternalFaultAddr;
111 uintptr_t UnknownPtr = reinterpret_cast<uintptr_t>(&State); in TEST_F()
125 uintptr_t FailureAddress = 0x9000; in TEST_F()
137 uintptr_t FailureAddress = 0x7000; in TEST_F()
153 uintptr_t FailureAddress = 0x7001; in TEST_F()
167 uintptr_t FailureAddress = 0x7001; in TEST_F()
183 uintptr_t FailureAddress = 0x7001; in TEST_F()
195 uintptr_t FailureAddress = 0x6000; in TEST_F()
[all …]
/openbsd/gnu/llvm/llvm/include/llvm/ADT/
H A DSmallBitVector.h39 uintptr_t X = 1;
64 using size_type = uintptr_t;
336 uintptr_t NewBits = t ? ~uintptr_t(0) << getSmallSize() : 0;
392 uintptr_t EMask = ((uintptr_t)1) << E; in set()
393 uintptr_t IMask = ((uintptr_t)1) << I; in set()
423 uintptr_t EMask = ((uintptr_t)1) << E; in reset()
424 uintptr_t IMask = ((uintptr_t)1) << I; in reset()
682 X = (uintptr_t)-1; in invalid()
686 ArrayRef<uintptr_t> getData(uintptr_t &Store) const { in getData()
697 uintptr_t M = Mask[0]; in applyMask()
[all …]
H A DPointerEmbeddedInt.h34 uintptr_t Value = 0;
38 static_assert(Bits < sizeof(uintptr_t) * CHAR_BIT,
41 enum : uintptr_t {
44 Shift = sizeof(uintptr_t) * CHAR_BIT - Bits,
47 Mask = static_cast<uintptr_t>(-1) << Bits
56 explicit PointerEmbeddedInt(uintptr_t Value, RawValueTag) : Value(Value) {}
66 Value = static_cast<uintptr_t>(I) << Shift;
90 return T(reinterpret_cast<uintptr_t>(P), typename T::RawValueTag());
94 return T(reinterpret_cast<uintptr_t>(P), typename T::RawValueTag());
/openbsd/gnu/llvm/compiler-rt/tools/gwp_asan/
H A Dstack_trace_compressor_fuzzer.cpp9 constexpr size_t kBytesForLargestVarInt = (sizeof(uintptr_t) * 8) / 7 + 1;
12 size_t BufferSize = kBytesForLargestVarInt * Size / sizeof(uintptr_t); in LLVMFuzzerTestOneInput()
19 BufferSize / sizeof(uintptr_t)); in LLVMFuzzerTestOneInput()
23 reinterpret_cast<const uintptr_t *>(Data), Size / sizeof(uintptr_t), in LLVMFuzzerTestOneInput()
29 reinterpret_cast<uintptr_t *>(Buffer2.data()), in LLVMFuzzerTestOneInput()
30 BufferSize / sizeof(uintptr_t)); in LLVMFuzzerTestOneInput()
33 if (DecodedElements != Size / sizeof(uintptr_t)) in LLVMFuzzerTestOneInput()
37 const uintptr_t *FuzzPtrs = reinterpret_cast<const uintptr_t *>(Data); in LLVMFuzzerTestOneInput()
38 const uintptr_t *DecodedPtrs = in LLVMFuzzerTestOneInput()
39 reinterpret_cast<const uintptr_t *>(Buffer2.data()); in LLVMFuzzerTestOneInput()
[all …]
/openbsd/gnu/llvm/compiler-rt/lib/fuzzer/
H A DFuzzerValueBitMap.h33 inline bool AddValue(uintptr_t Value) { in AddValue()
34 uintptr_t Idx = Value % kMapSizeInBits; in AddValue()
35 uintptr_t WordIdx = Idx / kBitsInWord; in AddValue()
36 uintptr_t BitIdx = Idx % kBitsInWord; in AddValue()
37 uintptr_t Old = Map[WordIdx]; in AddValue()
38 uintptr_t New = Old | (1ULL << BitIdx); in AddValue()
48 inline bool Get(uintptr_t Idx) { in Get()
50 uintptr_t WordIdx = Idx / kBitsInWord; in Get()
51 uintptr_t BitIdx = Idx % kBitsInWord; in Get()
61 if (uintptr_t M = Map[i]) in ForEach()
[all …]
H A DFuzzerTracePC.cpp477 uintptr_t PC = reinterpret_cast<uintptr_t>(GET_CALLER_PC()); in __sanitizer_cov_trace_pc_indir()
485 uintptr_t PC = reinterpret_cast<uintptr_t>(GET_CALLER_PC()); in __sanitizer_cov_trace_cmp8()
496 uintptr_t PC = reinterpret_cast<uintptr_t>(GET_CALLER_PC()); in __sanitizer_cov_trace_const_cmp8()
504 uintptr_t PC = reinterpret_cast<uintptr_t>(GET_CALLER_PC()); in __sanitizer_cov_trace_cmp4()
512 uintptr_t PC = reinterpret_cast<uintptr_t>(GET_CALLER_PC()); in __sanitizer_cov_trace_const_cmp4()
520 uintptr_t PC = reinterpret_cast<uintptr_t>(GET_CALLER_PC()); in __sanitizer_cov_trace_cmp2()
528 uintptr_t PC = reinterpret_cast<uintptr_t>(GET_CALLER_PC()); in __sanitizer_cov_trace_const_cmp2()
536 uintptr_t PC = reinterpret_cast<uintptr_t>(GET_CALLER_PC()); in __sanitizer_cov_trace_cmp1()
544 uintptr_t PC = reinterpret_cast<uintptr_t>(GET_CALLER_PC()); in __sanitizer_cov_trace_const_cmp1()
563 uintptr_t PC = reinterpret_cast<uintptr_t>(GET_CALLER_PC()); in __sanitizer_cov_trace_switch()
[all …]
/openbsd/gnu/gcc/libmudflap/
H A Dmf-heuristics.c53 __mf_heuristic_check (uintptr_t ptr, uintptr_t ptr_high) in __mf_heuristic_check()
67 uintptr_t stack_top_guess = (uintptr_t)__builtin_frame_address(0); in __mf_heuristic_check()
69 uintptr_t stack_segment_base = 0xC0000000; /* XXX: Bad assumption. */ in __mf_heuristic_check()
72 uintptr_t stack_segment_base = 0; in __mf_heuristic_check()
98 uintptr_t low; in __mf_heuristic_check()
99 uintptr_t high; in __mf_heuristic_check()
135 if ((uintptr_t) low <= ptr && in __mf_heuristic_check()
136 (uintptr_t) high >= ptr_high) in __mf_heuristic_check()
142 entry[i].low = (uintptr_t) low; in __mf_heuristic_check()
143 entry[i].high = (uintptr_t) high; in __mf_heuristic_check()
[all …]
H A Dmf-impl.h49 typedef __mf_uintptr_t uintptr_t; typedef
68 #define MINPTR ((uintptr_t) 0)
69 #define MAXPTR (~ (uintptr_t) 0)
72 #define CLAMPSUB(ptr,offset) (((uintptr_t) ptr) >= (offset) ? ((uintptr_t) ptr)-((uintptr_t) offset…
73 #define CLAMPADD(ptr,offset) (((uintptr_t) ptr) <= MAXPTR-(offset) ? ((uintptr_t) ptr)+((uintptr_t)…
74 …SZ(ptr,size) ((size) ? (((uintptr_t) ptr) <= MAXPTR-(size)+1 ? ((uintptr_t) ptr)+((uintptr_t) size…
76 #define __MF_CACHE_INDEX(ptr) ((((uintptr_t) (ptr)) >> __mf_lc_shift) & __mf_lc_mask)
79 ((elem->low > (uintptr_t) (ptr)) || \
80 (elem->high < (CLAMPADD((uintptr_t) (ptr), (uintptr_t) CLAMPSUB(sz,1) )))); })
88 uintptr_t pc, const char *location,
[all …]
/openbsd/gnu/llvm/compiler-rt/lib/gwp_asan/
H A Dstack_trace_compressor.cpp17 size_t varIntEncode(uintptr_t Value, uint8_t *Out, size_t OutLen) { in varIntEncode()
35 size_t varIntDecode(const uint8_t *In, size_t InLen, uintptr_t *Out) { in varIntDecode()
40 *Out |= (static_cast<uintptr_t>(In[i]) & 0x7f) << Shift; in varIntDecode()
48 if (Shift >= sizeof(uintptr_t) * 8) in varIntDecode()
54 uintptr_t zigzagEncode(uintptr_t Value) { in zigzagEncode()
55 uintptr_t Encoded = Value << 1; in zigzagEncode()
61 uintptr_t zigzagDecode(uintptr_t Value) { in zigzagDecode()
62 uintptr_t Decoded = Value >> 1; in zigzagDecode()
69 size_t pack(const uintptr_t *Unpacked, size_t UnpackedSize, uint8_t *Packed, in pack()
73 uintptr_t Diff = Unpacked[CurrentDepth]; in pack()
[all …]
H A Dguarded_pool_allocator.cpp34 uintptr_t getPageAddr(uintptr_t Ptr, uintptr_t PageSize) { in getPageAddr()
133 uintptr_t Start = reinterpret_cast<uintptr_t>(Base); in iterate()
181 uintptr_t GuardedPoolAllocator::alignUp(uintptr_t Ptr, size_t Alignment) { in alignUp()
191 uintptr_t GuardedPoolAllocator::alignDown(uintptr_t Ptr, size_t Alignment) { in alignDown()
238 uintptr_t SlotStart = State.slotToAddr(Index); in allocate()
241 uintptr_t UserPtr; in allocate()
327 uintptr_t UPtr = reinterpret_cast<uintptr_t>(Ptr); in deallocate()
329 uintptr_t SlotStart = State.slotToAddr(Slot); in deallocate()
379 &State, reinterpret_cast<uintptr_t>(Ptr)); in preCrashReport()
394 uintptr_t SignalUPtr = reinterpret_cast<uintptr_t>(SignalPtr); in postCrashReportRecoverableOnly()
[all …]
H A Dcommon.h73 void RecordAllocation(uintptr_t Addr, size_t RequestedSize);
92 uintptr_t Addr = 0;
119 uintptr_t P = reinterpret_cast<uintptr_t>(Ptr); in pointerIsMine()
124 uintptr_t slotToAddr(size_t N) const;
130 size_t getNearestSlot(uintptr_t Ptr) const;
134 bool isGuardPage(uintptr_t Ptr) const;
139 uintptr_t internallyDetectedErrorFaultAddress() const;
146 uintptr_t GuardedPagePool = 0;
147 uintptr_t GuardedPagePoolEnd = 0;
156 uintptr_t FailureAddress = 0;
H A Dcrash_handler.h39 uintptr_t ErrorPtr = 0u);
47 uintptr_t ErrorPtr);
58 uintptr_t
60 uintptr_t ErrorPtr);
70 uintptr_t ErrorPtr);
81 uintptr_t __gwp_asan_get_allocation_address(
101 const gwp_asan::AllocationMetadata *AllocationMeta, uintptr_t *Buffer,
124 const gwp_asan::AllocationMetadata *AllocationMeta, uintptr_t *Buffer,
H A Dcrash_handler.cpp24 uintptr_t ErrorPtr) { in __gwp_asan_error_is_mine()
33 uintptr_t
35 uintptr_t ErrorPtr) { in __gwp_asan_get_internal_crash_address()
48 const AllocationMetadata *Metadata, uintptr_t Ptr) { in addrToMetadata()
56 uintptr_t ErrorPtr) { in __gwp_asan_diagnose_error()
92 uintptr_t ErrorPtr) { in __gwp_asan_get_metadata()
107 uintptr_t __gwp_asan_get_allocation_address( in __gwp_asan_get_allocation_address()
123 const gwp_asan::AllocationMetadata *AllocationMeta, uintptr_t *Buffer, in __gwp_asan_get_allocation_trace()
125 uintptr_t UncompressedBuffer[AllocationMetadata::kMaxTraceLengthToCollect]; in __gwp_asan_get_allocation_trace()
147 const gwp_asan::AllocationMetadata *AllocationMeta, uintptr_t *Buffer, in __gwp_asan_get_deallocation_trace()
[all …]
/openbsd/gnu/llvm/libcxxabi/src/
H A Dcxa_personality.cpp206 uintptr_t
209 uintptr_t result = 0; in readULEB128()
210 uintptr_t shift = 0; in readULEB128()
232 uintptr_t result = 0; in readSLEB128()
233 uintptr_t shift = 0; in readSLEB128()
256 uintptr_t
259 uintptr_t result = 0; in readEncodedPointer()
345 uintptr_t offset = *reinterpret_cast<const uintptr_t*>(ptr); in read_target2_value()
456 static_cast<uintptr_t>(specIndex) * sizeof(uintptr_t)); in exception_spec_can_catch()
637 uintptr_t base = 0; in scan_eh_tab()
[all …]
/openbsd/gnu/llvm/libunwind/src/
H A DAddressSpace.hpp129 uintptr_t dso_base;
135 uintptr_t dwarf_section;
139 uintptr_t dwarf_index_section;
147 uintptr_t arm_section;
159 CacheItem(uintptr_t pc) in CacheItem()
164 uintptr_t m_pc;
169 typedef uintptr_t CacheItemKey;
214 typedef uintptr_t pint_t;
246 uintptr_t getP(pint_t addr);
440 uintptr_t targetAddr;
[all …]
H A DUnwindLevel1.c146 exception_object->private_2 = (uintptr_t)sp; in unwind_phase1()
488 exception_object->private_1 = (uintptr_t) stop; in _Unwind_ForcedUnwind()
497 _LIBUNWIND_EXPORT uintptr_t
501 uintptr_t result = 0; in _Unwind_GetLanguageSpecificData()
503 result = (uintptr_t)frameInfo.lsda; in _Unwind_GetLanguageSpecificData()
520 _LIBUNWIND_EXPORT uintptr_t
524 uintptr_t result = 0; in _Unwind_GetRegionStart()
526 result = (uintptr_t)frameInfo.start_ip; in _Unwind_GetRegionStart()
546 _LIBUNWIND_EXPORT uintptr_t
553 return (uintptr_t)result; in _Unwind_GetGR()
[all …]
/openbsd/sys/arch/riscv64/include/
H A Dsbi.h119 register uintptr_t a0 __asm ("a0") = (uintptr_t)(arg0); in sbi_call()
120 register uintptr_t a1 __asm ("a1") = (uintptr_t)(arg1); in sbi_call()
121 register uintptr_t a2 __asm ("a2") = (uintptr_t)(arg2); in sbi_call()
122 register uintptr_t a3 __asm ("a3") = (uintptr_t)(arg3); in sbi_call()
123 register uintptr_t a6 __asm ("a6") = (uintptr_t)(arg6); in sbi_call()
124 register uintptr_t a7 __asm ("a7") = (uintptr_t)(arg7); in sbi_call()
/openbsd/gnu/llvm/libunwind/include/
H A Dunwind_itanium.h26 uintptr_t private_[6];
28 uintptr_t private_1; // non-zero means forced unwind
29 uintptr_t private_2; // holds sp that phase1 found for phase2 to use
66 extern uintptr_t _Unwind_GetGR(struct _Unwind_Context *context, int index);
68 uintptr_t new_value);
69 extern uintptr_t _Unwind_GetIP(struct _Unwind_Context *context);
70 extern void _Unwind_SetIP(struct _Unwind_Context *, uintptr_t new_value);
H A Dunwind.h76 extern uintptr_t _Unwind_GetRegionStart(struct _Unwind_Context *context);
77 extern uintptr_t
120 extern uintptr_t _Unwind_GetCFA(struct _Unwind_Context *);
129 extern uintptr_t _Unwind_GetIPInfo(struct _Unwind_Context *context,
148 uintptr_t tbase;
149 uintptr_t dbase;
150 uintptr_t func;
164 extern uintptr_t _Unwind_GetDataRelBase(struct _Unwind_Context *context)
166 extern uintptr_t _Unwind_GetTextRelBase(struct _Unwind_Context *context)
/openbsd/gnu/llvm/llvm/lib/ExecutionEngine/
H A DSectionMemoryManager.cpp21 uint8_t *SectionMemoryManager::allocateDataSection(uintptr_t Size, in allocateDataSection()
33 uint8_t *SectionMemoryManager::allocateCodeSection(uintptr_t Size, in allocateCodeSection()
50 uintptr_t Addr = 0; in allocateSection()
68 Addr = (uintptr_t)FreeMB.Free.base(); in allocateSection()
69 uintptr_t EndOfBlock = Addr + FreeMB.Free.allocatedSize(); in allocateSection()
71 Addr = (Addr + Alignment - 1) & ~(uintptr_t)(Alignment - 1); in allocateSection()
126 Addr = (uintptr_t)MB.base(); in allocateSection()
127 uintptr_t EndOfBlock = Addr + MB.allocatedSize(); in allocateSection()
130 Addr = (Addr + Alignment - 1) & ~(uintptr_t)(Alignment - 1); in allocateSection()
186 (PageSize - ((uintptr_t)M.base() % PageSize)) % PageSize; in trimBlockToPageSize()
[all …]
/openbsd/gnu/llvm/compiler-rt/lib/scudo/standalone/include/scudo/
H A Dinterface.h26 typedef void (*iterate_callback)(uintptr_t base, size_t size, void *arg);
75 uintptr_t fault_addr, const char *stack_depot,
78 uintptr_t memory_addr, size_t memory_size);
90 uintptr_t allocation_address;
91 uintptr_t allocation_size;
94 uintptr_t allocation_trace[64];
97 uintptr_t deallocation_trace[64];

12345678910>>...19