Home | History | Annotate | Download | only in sanitizer_common

Lines Matching refs:uptr

26 const uptr kWordSize = SANITIZER_WORDSIZE / 8;
27 const uptr kWordSizeInBits = 8 * kWordSize;
30 const uptr kCacheLineSize = 128;
32 const uptr kCacheLineSize = 64;
36 extern uptr SanitizerVerbosity;
38 uptr GetPageSize();
39 uptr GetPageSizeCached();
40 uptr GetMmapGranularity();
43 uptr GetTid();
44 uptr GetThreadSelf();
45 void GetThreadStackTopAndBottom(bool at_initialization, uptr *stack_top,
46 uptr *stack_bottom);
49 void *MmapOrDie(uptr size, const char *mem_type);
50 void UnmapOrDie(void *addr, uptr size);
51 void *MmapFixedNoReserve(uptr fixed_addr, uptr size);
52 void *MmapFixedOrDie(uptr fixed_addr, uptr size);
53 void *Mprotect(uptr fixed_addr, uptr size);
55 void *MmapAlignedOrDie(uptr size, uptr alignment, const char *mem_type);
57 bool MemoryRangeIsAvailable(uptr range_start, uptr range_end);
58 void FlushUnneededShadowMemory(uptr addr, uptr size);
61 void *InternalAlloc(uptr size);
71 explicit InternalScopedBuffer(uptr cnt) {
78 T &operator[](uptr i) { return ptr_[i]; }
80 uptr size() { return cnt_ * sizeof(T); }
84 uptr cnt_;
96 void *Allocate(uptr size);
101 typedef void (*LowLevelAllocateCallback)(uptr ptr, uptr size);
118 uptr ReadFileToBuffer(const char *file_name, char **buff,
119 uptr *buff_size, uptr max_len);
123 void *MapFileToMemory(const char *file_name, uptr *buff_size);
134 void SetStackSizeLimitInBytes(uptr limit);
138 uptr GetTlsSize();
144 void SortArray(uptr *array, uptr size);
184 INLINE uptr MostSignificantSetBitIndex(uptr x) {
197 INLINE bool IsPowerOfTwo(uptr x) {
201 INLINE uptr RoundUpToPowerOfTwo(uptr size) {
205 uptr up = MostSignificantSetBitIndex(size);
211 INLINE uptr RoundUpTo(uptr size, uptr boundary) {
216 INLINE uptr RoundDownTo(uptr x, uptr boundary) {
220 INLINE bool IsAligned(uptr a, uptr alignment) {
224 INLINE uptr Log2(uptr x) {
273 explicit InternalVector(uptr initial_capacity) {
282 T &operator[](uptr i) {
289 uptr new_capacity = RoundUpToPowerOfTwo(size_ + 1);
302 uptr size() {
307 void Resize(uptr new_capacity) {
323 uptr capacity_;
324 uptr size_;