Home | History | Annotate | Download | only in sanitizer_common

Lines Matching full:uptr

27 const uptr kWordSize = SANITIZER_WORDSIZE / 8;
28 const uptr kWordSizeInBits = 8 * kWordSize;
31 const uptr kCacheLineSize = 128;
33 const uptr kCacheLineSize = 64;
36 const uptr kMaxPathLength = 512;
39 extern uptr SanitizerVerbosity;
41 uptr GetPageSize();
42 uptr GetPageSizeCached();
43 uptr GetMmapGranularity();
44 uptr GetMaxVirtualAddress();
46 uptr GetTid();
47 uptr GetThreadSelf();
48 void GetThreadStackTopAndBottom(bool at_initialization, uptr *stack_top,
49 uptr *stack_bottom);
50 void GetThreadStackAndTls(bool main, uptr *stk_addr, uptr *stk_size,
51 uptr *tls_addr, uptr *tls_size);
54 void *MmapOrDie(uptr size, const char *mem_type);
55 void UnmapOrDie(void *addr, uptr size);
56 void *MmapFixedNoReserve(uptr fixed_addr, uptr size);
57 void *MmapFixedOrDie(uptr fixed_addr, uptr size);
58 void *Mprotect(uptr fixed_addr, uptr size);
60 void *MmapAlignedOrDie(uptr size, uptr alignment, const char *mem_type);
62 bool MemoryRangeIsAvailable(uptr range_start, uptr range_end);
63 void FlushUnneededShadowMemory(uptr addr, uptr size);
72 explicit InternalScopedBuffer(uptr cnt) {
79 T &operator[](uptr i) { return ptr_[i]; }
81 uptr size() { return cnt_ * sizeof(T); }
85 uptr cnt_;
97 void *Allocate(uptr size);
102 typedef void (*LowLevelAllocateCallback)(uptr ptr, uptr size);
118 uptr OpenFile(const char *filename, bool write);
123 uptr ReadFileToBuffer(const char *file_name, char **buff,
124 uptr *buff_size, uptr max_len);
128 void *MapFileToMemory(const char *file_name, uptr *buff_size);
140 void SetStackSizeLimitInBytes(uptr limit);
144 uptr GetTlsSize();
151 void SortArray(uptr *array, uptr size);
191 INLINE uptr MostSignificantSetBitIndex(uptr x) {
204 INLINE bool IsPowerOfTwo(uptr x) {
208 INLINE uptr RoundUpToPowerOfTwo(uptr size) {
212 uptr up = MostSignificantSetBitIndex(size);
218 INLINE uptr RoundUpTo(uptr size, uptr boundary) {
223 INLINE uptr RoundDownTo(uptr x, uptr boundary) {
227 INLINE bool IsAligned(uptr a, uptr alignment) {
231 INLINE uptr Log2(uptr x) {
280 explicit InternalMmapVector(uptr initial_capacity) {
289 T &operator[](uptr i) {
293 const T &operator[](uptr i) const {
300 uptr new_capacity = RoundUpToPowerOfTwo(size_ + 1);
313 uptr size() const {
319 uptr capacity() const {
324 void Resize(uptr new_capacity) {
340 uptr capacity_;
341 uptr size_;
346 void InternalSort(Container *v, uptr size, Compare comp) {
350 for (uptr i = 1; i < size; i++) {
351 uptr j, p;
362 for (uptr i = size - 1; i > 0; i--) {
364 uptr j, max_ind;
366 uptr left = 2 * j + 1;
367 uptr right = 2 * j + 2;