/external/clang/test/Sema/ |
alloc_size.c | 3 void* my_malloc(unsigned char) __attribute__((alloc_size(1))); 4 void* my_calloc(unsigned char, short) __attribute__((alloc_size(1,2))); 5 void* my_realloc(void*, unsigned) __attribute__((alloc_size(2))); 8 void* fn1(int) __attribute__((alloc_size("xpto"))); // expected-error{{'alloc_size' attribute requires parameter 1 to be an integer constant}} 10 void* fn2(void*) __attribute__((alloc_size(1))); // expected-error{{'alloc_size' attribute requires an integer constant}} 12 void* fn3(unsigned) __attribute__((alloc_size(0))); // expected-error{{attribute parameter 1 is out of bounds}} 13 void* fn4(unsigned) __attribute__((alloc_size(2))); // expected-error{{attribute parameter 1 is out of bounds}} 15 void fn5(unsigned) __attribute__((alloc_size(1))); // expected-warning{{only applies to functions that return a pointer} [all...] |
/external/chromium_org/content/browser/loader/ |
resource_buffer.cc | 94 int alloc_size; local 100 alloc_size = buf_size_; 111 alloc_size = buf_size_ - alloc_end_; 116 alloc_size = alloc_start_; 123 alloc_size = alloc_start_ - alloc_end_; 127 // Make sure alloc_size does not exceed max_alloc_size_. We store the 128 // current value of alloc_size, so that we can use ShrinkLastAllocation to 131 alloc_sizes_.push(alloc_size); 133 if (alloc_size > max_alloc_size_) { 134 alloc_size = max_alloc_size_ [all...] |
/external/oprofile/libutil/ |
op_libiberty.c | 30 void * xmemdup (void const * input, size_t copy_size, size_t alloc_size) 32 void * output = xcalloc(1, alloc_size);
|
/external/mksh/src/ |
lalloc.c | 32 #define ALLOC_ISUNALIGNED(p) (((ptrdiff_t)(p)) % ALLOC_SIZE) 54 * note: the alignment of "ptr" to ALLOC_SIZE is checked 57 *lpp = (lp = ptr - ALLOC_SIZE); 97 if (notoktoadd(numb, ALLOC_SIZE) || 98 (lp = remalloc(lp, numb + ALLOC_SIZE)) == NULL 108 return ((char *)lp + ALLOC_SIZE);
|
/external/chromium_org/third_party/tcmalloc/chromium/src/ |
heap-profile-stats.h | 32 alloc_size - free_size == other.alloc_size - other.free_size; 37 int64 alloc_size; // Total size of all allocated objects so far. member in struct:HeapProfileStats
|
/external/compiler-rt/lib/asan/tests/ |
asan_oob_test.cc | 79 for (size_t alloc_size = 1; alloc_size <= 8; alloc_size++) { 81 void *p = malloc(alloc_size); 82 // allocated: [p, p + alloc_size) 85 if (offset + access_size <= alloc_size) { 88 int outside_bytes = offset > alloc_size ? (offset - alloc_size) : 0;
|
/frameworks/rs/cpu_ref/linkloader/include/impl/ |
ELFSectionProgBits.hxx | 42 size_t alloc_size = section_size; local 62 alloc_size += stub_table_size; 66 if (!result->chunk.allocate(alloc_size)) {
|
/external/clang/test/Misc/ |
ast-dump-attr.cpp | 91 void *TestVariadicUnsigned1(int) __attribute__((alloc_size(1))); 95 void *TestVariadicUnsigned2(int, int) __attribute__((alloc_size(1,2)));
|
/external/clang/test/SemaCXX/ |
cxx11-gnu-attrs.cpp | 21 [[gnu::malloc, gnu::alloc_size(1,2)]] void *alloc_size(int a, int b);
|
/development/ndk/platforms/android-3/include/linux/ |
relay.h | 53 size_t alloc_size; member in struct:rchan
|
/external/chromium_org/chrome/installer/mini_installer/ |
mini_string.h | 27 // alloc_size. The highest return value from this function can therefore be 28 // alloc_size - 1 since |alloc_size| includes the \0 terminator. 29 size_t SafeStrLen(const wchar_t* str, size_t alloc_size);
|
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/ |
u_upload_mgr.c | 163 unsigned alloc_size = align( size, upload->alignment ); local 176 if (MAX2(upload->offset, alloc_offset) + alloc_size > upload->size) { 178 alloc_offset + alloc_size); 209 upload->offset = offset + alloc_size;
|
/external/chromium_org/third_party/tcmalloc/vendor/src/ |
heap-profile-table.cc | 120 return (a->alloc_size - a->free_size) > (b->alloc_size - b->free_size); 230 b->alloc_size += bytes; 232 total_.alloc_size += bytes; 301 profile_stats->alloc_size += b.alloc_size; 308 b.alloc_size - b.free_size, 310 b.alloc_size, 377 if (b->alloc_size == 0) { 381 b->alloc_size += r->end_addr - r->start_addr [all...] |
/external/compiler-rt/lib/asan/ |
asan_fake_stack.cc | 40 ALWAYS_INLINE uptr FakeStack::ComputeSizeClass(uptr alloc_size) { 41 uptr rounded_size = RoundUpToPowerOfTwo(alloc_size); 43 CHECK_LE(alloc_size, (1UL << log)); 44 CHECK_GT(alloc_size, (1UL << (log-1)));
|
/external/mesa3d/src/gallium/auxiliary/util/ |
u_upload_mgr.c | 163 unsigned alloc_size = align( size, upload->alignment ); local 176 if (MAX2(upload->offset, alloc_offset) + alloc_size > upload->size) { 178 alloc_offset + alloc_size); 209 upload->offset = offset + alloc_size;
|
/prebuilts/ndk/4/platforms/android-3/arch-arm/usr/include/linux/ |
relay.h | 53 size_t alloc_size; member in struct:rchan
|
/prebuilts/ndk/4/platforms/android-4/arch-arm/usr/include/linux/ |
relay.h | 53 size_t alloc_size; member in struct:rchan
|
/prebuilts/ndk/4/platforms/android-5/arch-arm/usr/include/linux/ |
relay.h | 53 size_t alloc_size; member in struct:rchan
|
/prebuilts/ndk/4/platforms/android-5/arch-x86/usr/include/linux/ |
relay.h | 53 size_t alloc_size; member in struct:rchan
|
/prebuilts/ndk/4/platforms/android-8/arch-arm/usr/include/linux/ |
relay.h | 53 size_t alloc_size; member in struct:rchan
|
/prebuilts/ndk/4/platforms/android-8/arch-x86/usr/include/linux/ |
relay.h | 53 size_t alloc_size; member in struct:rchan
|
/prebuilts/ndk/5/platforms/android-3/arch-arm/usr/include/linux/ |
relay.h | 53 size_t alloc_size; member in struct:rchan
|
/prebuilts/ndk/6/platforms/android-3/arch-arm/usr/include/linux/ |
relay.h | 53 size_t alloc_size; member in struct:rchan
|
/prebuilts/ndk/6/platforms/android-3/arch-x86/usr/include/linux/ |
relay.h | 53 size_t alloc_size; member in struct:rchan
|
/prebuilts/ndk/7/platforms/android-14/arch-arm/usr/include/linux/ |
relay.h | 53 size_t alloc_size; member in struct:rchan
|