/external/valgrind/none/tests/ |
pth_stackalign.stdout.exp | 0 alignment = 0
|
/external/e2fsprogs/tests/f_badcluster/ |
name | 1 test alignment problems with bigalloc clusters
|
/device/generic/goldfish/camera/ |
Alignment.h | 6 // Align |value| to the next larger value that is divisible by |alignment| 7 // |alignment| has to be a power of 2. 8 inline int align(int value, int alignment) { 9 return (value + alignment - 1) & (~(alignment - 1));
|
/external/jemalloc/test/integration/ |
posix_memalign.c | 21 size_t alignment; local 24 for (alignment = 0; alignment < sizeof(void *); alignment++) { 25 assert_d_eq(posix_memalign(&p, alignment, 1), EINVAL, 26 "Expected error for invalid alignment %zu", 27 alignment); local 30 for (alignment = sizeof(size_t); alignment < MAXALIGN; 31 alignment <<= 1) 34 alignment + 1); local 41 size_t alignment, size; local 53 alignment, size); local 64 alignment, size); local 74 alignment, size); local 81 size_t alignment, size, total; local [all...] |
aligned_alloc.c | 21 size_t alignment; local 24 alignment = 0; 26 p = aligned_alloc(alignment, 1); 28 "Expected error for invalid alignment %zu", alignment); 30 for (alignment = sizeof(size_t); alignment < MAXALIGN; 31 alignment <<= 1) { 33 p = aligned_alloc(alignment + 1, 1); 35 "Expected error for invalid alignment %zu" 43 size_t alignment, size; local 89 size_t alignment, size, total; local [all...] |
sdallocx.c | 15 size_t nsz, sz, alignment, total; local 22 for (alignment = 8; 23 alignment <= MAXALIGN; 24 alignment <<= 1) { 27 sz < 3 * alignment && sz < (1U << 31); 28 sz += (alignment >> (LG_SIZEOF_PTR-1)) - 1) { 30 nsz = nallocx(sz, MALLOCX_ALIGN(alignment) | 32 ps[i] = mallocx(sz, MALLOCX_ALIGN(alignment) | 41 MALLOCX_ALIGN(alignment));
|
/external/llvm/lib/Target/XCore/ |
README.txt | 6 * Investigate loop alignment
|
/external/swiftshader/third_party/LLVM/lib/Target/XCore/ |
README.txt | 6 * Investigate loop alignment
|
/external/syslinux/com32/lib/sys/module/ |
elfutils.c | 39 int elf_malloc(void **memptr, size_t alignment, size_t size) { 43 if ((alignment & (alignment - 1)) != 0) 45 if (alignment % sizeof(void*) != 0) 46 alignment = sizeof(void*); 48 start_addr = malloc(size + (alignment > sizeof(struct memalign_info) ? 49 alignment : sizeof(struct memalign_info))); 56 ((unsigned long)start_addr % alignment) + 57 alignment - sizeof(struct memalign_info)); 75 int elf_malloc(void **memptr, size_t alignment, size_t size) [all...] |
/external/deqp/framework/delibs/decpp/ |
dePoolArray.hpp | 38 template<typename T, deUint32 Alignment> 41 template<typename T, deUint32 Alignment> 51 template<typename T, deUint32 Alignment = (sizeof(T) > sizeof(void*) ? (deUint32)sizeof(void*) : (deUint32)sizeof(T))> 55 typedef PoolArrayIterator<T, Alignment> Iterator; 56 typedef PoolArrayConstIterator<T, Alignment> ConstIterator; 62 PoolArray (MemPool* pool, const PoolArray<T, Alignment>& other); 101 PoolArray (const PoolArray<T, Alignment>& other); // \note Default copy ctor is not allowed, use PoolArray(pool, copy) instead. 114 template<typename T, deUint32 Alignment> 127 template<typename T, deUint32 Alignment> 128 class PoolArrayConstIterator : public PoolArrayIteratorBase<T, Alignment> [all...] |
/external/llvm/test/Assembler/ |
invalid-datalayout14.ll | 3 ; CHECK: Preferred alignment cannot be less than the ABI alignment
|
invalid-datalayout18.ll | 3 ; CHECK: Preferred alignment cannot be less than the ABI alignment
|
/external/fio/ |
memalign.h | 4 extern void *fio_memalign(size_t alignment, size_t size);
|
memalign.c | 14 void *fio_memalign(size_t alignment, size_t size) 19 assert(!(alignment & (alignment - 1))); 21 ptr = malloc(size + alignment + size + sizeof(*f) - 1); 23 ret = PTR_ALIGN(ptr, alignment - 1);
|
/toolchain/binutils/binutils-2.25/gas/testsuite/gas/mips/ |
align.s | 1 # Test file used to verify maximum alignment value.
|
/external/webrtc/webrtc/system_wrappers/source/ |
aligned_malloc_unittest.cc | 25 // Returns true if |size| and |alignment| are valid combinations. 26 bool CorrectUsage(size_t size, size_t alignment) { 28 static_cast<char*>(AlignedMalloc(size, alignment))); 33 return 0u == scoped_address % alignment; 38 const size_t alignment = 32; local 41 static_cast<char*>(AlignedMalloc(size, alignment))); 47 const char* realigned_ptr = GetRightAlign(misaligned_ptr, alignment); 53 const size_t alignment = 64; local 54 EXPECT_FALSE(CorrectUsage(incorrect_size, alignment)); 65 size_t alignment = 2 local 71 size_t alignment = 32; local 77 size_t alignment = 128; local [all...] |
aligned_malloc.cc | 24 // Reference on memory alignment: 25 // http://stackoverflow.com/questions/227897/solve-the-memory-alignment-in-c-interview-question-that-stumped-me 28 uintptr_t GetRightAlign(uintptr_t start_pos, size_t alignment) { 29 // The pointer should be aligned with |alignment| bytes. The - 1 guarantees 31 return (start_pos + alignment - 1) & ~(alignment - 1); 34 // Alignment must be an integer power of two. 35 bool ValidAlignment(size_t alignment) { 36 if (!alignment) { 39 return (alignment & (alignment - 1)) == 0 [all...] |
/external/libchrome/base/memory/ |
aligned_memory.cc | 16 void* AlignedAlloc(size_t size, size_t alignment) { 18 DCHECK_EQ(alignment & (alignment - 1), 0U); 19 DCHECK_EQ(alignment % sizeof(void*), 0U); 22 ptr = _aligned_malloc(size, alignment); 29 ptr = memalign(alignment, size); 31 if (posix_memalign(&ptr, alignment, size)) 39 << "size=" << size << ", alignment=" << alignment; local 42 // Sanity check alignment just to be safe [all...] |
/external/clang/test/CXX/dcl.dcl/dcl.attr/dcl.align/ |
p5.cpp | 3 alignas(1) int n1; // expected-error {{requested alignment is less than minimum alignment of 4 for type 'int'}} 4 alignas(1) alignas(2) int n2; // expected-error {{less than minimum alignment}} 6 alignas(1) alignas(2) alignas(0) int n4; // expected-error {{less than minimum alignment}} 9 alignas(1) int n7 alignas(2), // expected-error {{less than minimum alignment}} 12 alignas(1) extern int n10; // expected-error {{less than minimum alignment}} 14 enum alignas(1) E1 {}; // expected-error {{requested alignment is less than minimum alignment of 4 for type 'E1'}} 17 enum alignas(4) E4 { e4 = 1ull << 33 }; // expected-error {{requested alignment is less than minimum alignment of 8 for type 'E4'} [all...] |
/prebuilts/abi-dumps/ndk/current/x86/source-based/ |
libc.so.lsdump.gz | |
/prebuilts/abi-dumps/ndk/current/x86_64/source-based/ |
libc.so.lsdump.gz | |
libdl.so.lsdump.gz | |
/prebuilts/abi-dumps/ndk/current/arm/source-based/ |
libc.so.lsdump.gz | |
/prebuilts/abi-dumps/ndk/current/mips64/source-based/ |
libc.so.lsdump.gz | |
/prebuilts/abi-dumps/ndk/current/arm64/source-based/ |
libc.so.lsdump.gz | |