| /src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/ |
| sanitizer_allocator_checks.h | 40 // Checks aligned_alloc() parameters, verifies that the alignment is a power of 41 // two and that the size is a multiple of alignment for POSIX implementation, 43 // of alignment. 44 inline bool CheckAlignedAllocAlignmentAndSize(uptr alignment, uptr size) { 46 return alignment != 0 && IsPowerOfTwo(alignment) && 47 (size & (alignment - 1)) == 0; 49 return alignment != 0 && size % alignment == 0; 53 // Checks posix_memalign() parameters, verifies that alignment is a power of tw [all...] |
| /src/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/ |
| sanitizer_allocator_checks.h | 40 // Checks aligned_alloc() parameters, verifies that the alignment is a power of 41 // two and that the size is a multiple of alignment for POSIX implementation, 43 // of alignment. 44 inline bool CheckAlignedAllocAlignmentAndSize(uptr alignment, uptr size) { 46 return alignment != 0 && IsPowerOfTwo(alignment) && 47 (size & (alignment - 1)) == 0; 49 return alignment != 0 && size % alignment == 0; 53 // Checks posix_memalign() parameters, verifies that alignment is a power of tw [all...] |
| /src/lib/libc/stdlib/ |
| aligned_alloc.c | 42 aligned_alloc(size_t alignment, size_t size) 48 * Check that alignment is a power of 2. 50 if (alignment == 0 || ((alignment - 1) & alignment) != 0) { 56 * Adjust alignment to satisfy posix_memalign, 59 while (alignment < sizeof(void *)) { 60 alignment <<= 1; 63 err = posix_memalign(&memptr, alignment, size);
|
| /src/external/bsd/jemalloc.old/dist/test/integration/ |
| posix_memalign.c | 17 size_t alignment; local 20 for (alignment = 0; alignment < sizeof(void *); alignment++) { 21 expect_d_eq(posix_memalign(&p, alignment, 1), EINVAL, 22 "Expected error for invalid alignment %zu", 23 alignment); local 26 for (alignment = sizeof(size_t); alignment < MAXALIGN; 27 alignment <<= 1) 30 alignment + 1); local 36 size_t alignment, size; local 48 alignment, size); local 59 alignment, size); local 69 alignment, size); local 75 size_t alignment, size, total; local [all...] |
| aligned_alloc.c | 17 size_t alignment; local 20 alignment = 0; 22 p = aligned_alloc(alignment, 1); 24 "Expected error for invalid alignment %zu", alignment); 26 for (alignment = sizeof(size_t); alignment < MAXALIGN; 27 alignment <<= 1) { 29 p = aligned_alloc(alignment + 1, 1); 31 "Expected error for invalid alignment %zu" 49 size_t alignment, size; local 97 size_t alignment, size, total; local [all...] |
| sdallocx.c | 13 size_t nsz, sz, alignment, total; local 21 for (alignment = 8; 22 alignment <= MAXALIGN; 23 alignment <<= 1) { 26 sz < 3 * alignment && sz < (1U << 31); 27 sz += (alignment >> (LG_SIZEOF_PTR-1)) - 1) { 29 nsz = nallocx(sz, MALLOCX_ALIGN(alignment) | 31 ps[i] = mallocx(sz, MALLOCX_ALIGN(alignment) | 41 MALLOCX_ALIGN(alignment));
|
| /src/external/bsd/jemalloc/dist/test/integration/ |
| posix_memalign.c | 17 size_t alignment; local 20 for (alignment = 0; alignment < sizeof(void *); alignment++) { 21 expect_d_eq(posix_memalign(&p, alignment, 1), EINVAL, 22 "Expected error for invalid alignment %zu", alignment); local 25 for (alignment = sizeof(size_t); alignment < MAXALIGN; 26 alignment <<= 1) 28 "Expected error for invalid alignment %zu", alignment + 1); local 34 size_t alignment, size; local 45 "Expected error for posix_memalign(&p, %zu, %zu)", alignment, size); local 55 "Expected error for posix_memalign(&p, %zu, %zu)", alignment, size); local 64 "Expected error for posix_memalign(&p, %zu, %zu)", alignment, size); local 70 size_t alignment, size, total; local [all...] |
| aligned_alloc.c | 17 size_t alignment; local 20 alignment = 0; 22 p = aligned_alloc(alignment, 1); 24 "Expected error for invalid alignment %zu", alignment); 26 for (alignment = sizeof(size_t); alignment < MAXALIGN; 27 alignment <<= 1) { 29 p = aligned_alloc(alignment + 1, 1); 31 "Expected error for invalid alignment %zu", alignment + 1) 47 size_t alignment, size; local 92 size_t alignment, size, total; local [all...] |
| sdallocx.c | 13 size_t nsz, sz, alignment, total; local 21 for (alignment = 8; alignment <= MAXALIGN; alignment <<= 1) { 23 for (sz = 1; sz < 3 * alignment && sz < (1U << 31); 24 sz += (alignment >> (LG_SIZEOF_PTR - 1)) - 1) { 27 MALLOCX_ALIGN(alignment) | MALLOCX_ZERO); 29 MALLOCX_ALIGN(alignment) | MALLOCX_ZERO); 38 MALLOCX_ALIGN(alignment));
|
| /src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/ |
| sanitizer_allocator_checks.h | 41 // Checks aligned_alloc() parameters, verifies that the alignment is a power of 42 // two and that the size is a multiple of alignment for POSIX implementation, 44 // of alignment. 45 INLINE bool CheckAlignedAllocAlignmentAndSize(uptr alignment, uptr size) { 47 return alignment != 0 && IsPowerOfTwo(alignment) && 48 (size & (alignment - 1)) == 0; 50 return alignment != 0 && size % alignment == 0; 54 // Checks posix_memalign() parameters, verifies that alignment is a power of tw [all...] |
| sanitizer_allocator_report.h | 26 void NORETURN ReportInvalidAllocationAlignment(uptr alignment, 28 void NORETURN ReportInvalidAlignedAllocAlignment(uptr size, uptr alignment, 30 void NORETURN ReportInvalidPosixMemalignAlignment(uptr alignment,
|
| /src/external/gpl3/gdb.old/dist/gdb/testsuite/lib/ |
| precise-aligned-alloc.c | 24 /* Return true if address P is ALIGNMENT-byte aligned. */ 27 is_aligned (void *p, size_t alignment) 29 size_t mask = (alignment - 1); 33 /* Allocate SIZE memory with ALIGNMENT, and return it. If FREE_POINTER, 36 Do the alignment precisely, in other words, if an alignment of 4 is 40 The benefit of using precise alignment is that accidentally specifying 41 a too low alignment will not be compensated by accidental 45 precise_aligned_alloc (size_t alignment, size_t size, void **free_pointer) 47 /* Allocate extra to compensate for "p += alignment". * [all...] |
| /src/external/gpl3/gdb/dist/gdb/testsuite/lib/ |
| precise-aligned-alloc.c | 24 /* Return true if address P is ALIGNMENT-byte aligned. */ 27 is_aligned (void *p, size_t alignment) 29 size_t mask = (alignment - 1); 33 /* Allocate SIZE memory with ALIGNMENT, and return it. If FREE_POINTER, 36 Do the alignment precisely, in other words, if an alignment of 4 is 40 The benefit of using precise alignment is that accidentally specifying 41 a too low alignment will not be compensated by accidental 45 precise_aligned_alloc (size_t alignment, size_t size, void **free_pointer) 47 /* Allocate extra to compensate for "p += alignment". * [all...] |
| /src/external/gpl2/libmalloc/dist/ |
| memalign.c | 28 memalign (alignment, size) 29 __malloc_size_t alignment; 36 return (*__memalign_hook) (alignment, size); 38 size = ((size + alignment - 1) / alignment) * alignment; 44 (char *) NULL)) % alignment; 64 result = l->aligned = (char *) result + alignment - adj;
|
| /src/external/bsd/jemalloc.old/dist/src/ |
| extent_mmap.c | 21 extent_alloc_mmap(void *new_addr, size_t size, size_t alignment, bool *zero, 23 assert(alignment == ALIGNMENT_CEILING(alignment, PAGE)); 24 void *ret = pages_map(new_addr, size, alignment, commit);
|
| /src/external/bsd/jemalloc/dist/src/ |
| extent_mmap.c | 22 void *new_addr, size_t size, size_t alignment, bool *zero, bool *commit) { 23 assert(alignment == ALIGNMENT_CEILING(alignment, PAGE)); 24 void *ret = pages_map(new_addr, size, alignment, commit);
|
| /src/external/apache2/llvm/dist/clang/lib/Headers/ppc_wrappers/ |
| mm_malloc.h | 26 _mm_malloc (size_t size, size_t alignment) 28 /* PowerPC64 ELF V2 ABI requires quadword alignment. */ 32 if (alignment < vec_align) 33 alignment = vec_align; 34 if (posix_memalign (&ptr, alignment, size) == 0)
|
| /src/external/apache2/llvm/dist/libcxx/src/ |
| new.cpp | 175 operator new(std::size_t size, std::align_val_t alignment) _THROW_BAD_ALLOC 179 if (static_cast<size_t>(alignment) < sizeof(void*)) 180 alignment = std::align_val_t(sizeof(void*)); 189 while ((p = std::__libcpp_aligned_alloc(static_cast<std::size_t>(alignment), size)) == nullptr) 207 operator new(size_t size, std::align_val_t alignment, const std::nothrow_t&) noexcept 214 p = ::operator new(size, alignment); 226 operator new[](size_t size, std::align_val_t alignment) _THROW_BAD_ALLOC 228 return ::operator new(size, alignment); 233 operator new[](size_t size, std::align_val_t alignment, const std::nothrow_t&) noexcept 240 p = ::operator new[](size, alignment); [all...] |
| /src/sys/external/bsd/compiler_rt/dist/include/sanitizer/ |
| hwasan_interface.h | 65 int __sanitizer_posix_memalign(void **memptr, size_t alignment, size_t size); 66 void * __sanitizer_memalign(size_t alignment, size_t size); 67 void * __sanitizer_aligned_alloc(size_t alignment, size_t size); 68 void * __sanitizer___libc_memalign(size_t alignment, size_t size);
|
| /src/external/bsd/jemalloc.old/dist/include/jemalloc/internal/ |
| extent_mmap.h | 6 void *extent_alloc_mmap(void *new_addr, size_t size, size_t alignment,
|
| /src/external/bsd/jemalloc.old/include/jemalloc/internal/ |
| extent_mmap.h | 6 void *extent_alloc_mmap(void *new_addr, size_t size, size_t alignment,
|
| /src/external/gpl2/gettext/dist/gettext-tools/src/ |
| write-mo.h | 27 /* Alignment of strings in resulting .mo file. */ 28 extern size_t alignment;
|
| /src/external/bsd/jemalloc/dist/include/jemalloc/internal/ |
| extent_mmap.h | 9 void *new_addr, size_t size, size_t alignment, bool *zero, bool *commit);
|
| /src/external/bsd/jemalloc/include/jemalloc/internal/ |
| extent_mmap.h | 9 void *new_addr, size_t size, size_t alignment, bool *zero, bool *commit);
|
| /src/sys/external/bsd/drm/dist/bsd-core/ |
| drm_mm.h | 62 unsigned alignment, 66 unsigned alignment) 68 return drm_mm_get_block_generic(parent, size, alignment, 0); 72 unsigned alignment) 74 return drm_mm_get_block_generic(parent, size, alignment, 1); 79 unsigned alignment,
|