/bionic/tests/libs/ |
H A D | bionic_tests_zipalign.cpp | 32 fprintf(stderr, " The new alignment of all entries in the new zip file.\n"); 66 static bool CreateAlignedZip(ZipArchiveHandle& handle, FILE* zip_dst, uint32_t alignment) { argument 86 error = writer.StartAlignedEntry(zip_name.c_str(), flags, alignment); 126 unsigned long int alignment = strtoul(argv[1], &end, 10); local 127 if ((alignment == ULONG_MAX && errno == ERANGE) || *end != '\0') { 132 if (((alignment - 1) & alignment) != 0) { 152 bool success = CreateAlignedZip(handle, zip_dst, static_cast<uint32_t>(alignment));
|
/bionic/libc/kernel/uapi/mtd/ |
H A D | ubi-user.h | 71 __s32 alignment; member in struct:ubi_mkvol_req
|
/bionic/libc/malloc_debug/ |
H A D | malloc_debug.cpp | 75 void* debug_memalign(size_t alignment, size_t bytes); 79 int debug_posix_memalign(void** memptr, size_t alignment, size_t size); 383 void* debug_memalign(size_t alignment, size_t bytes) { argument 385 return g_dispatch->memalign(alignment, bytes); 399 // Make the alignment a power of two. 400 if (!powerof2(alignment)) { 401 alignment = BIONIC_ROUND_UP_POWER_OF_2(alignment); 403 // Force the alignment to at least MINIMUM_ALIGNMENT_BYTES to guarantee 405 if (alignment < MINIMUM_ALIGNMENT_BYTE 587 debug_posix_memalign(void** memptr, size_t alignment, size_t size) argument [all...] |
/bionic/tests/ |
H A D | buffer_tests.cpp | 31 // Both buffers at same alignment. 63 // Set of multiple buffer alignment combinations to be used for string/memory 66 // Both buffers at same alignment. 194 // Return a pointer into the current buffer with the specified alignment. 195 static void *GetAlignedPtr(void *orig_ptr, int alignment, int or_mask) { argument 197 if (alignment > 0) { 198 // When setting the alignment, set it to exactly the alignment chosen. 201 ptr += alignment - (ptr & (alignment [all...] |
H A D | pthread_test.cpp | 1697 void* allocate(size_t size, size_t alignment) { argument 1698 char* p = new char[size + alignment * 2]; 1700 while (!is_strict_aligned(p, alignment)) { 1713 bool is_strict_aligned(char* p, size_t alignment) { argument 1714 return (reinterpret_cast<uintptr_t>(p) % (alignment * 2)) == alignment;
|
/bionic/libc/bionic/ |
H A D | malloc_common.cpp | 120 extern "C" void* memalign(size_t alignment, size_t bytes) { argument 123 return _memalign(alignment, bytes); 125 return Malloc(memalign)(alignment, bytes); 128 extern "C" int posix_memalign(void** memptr, size_t alignment, size_t size) { argument 131 return _posix_memalign(memptr, alignment, size); 133 return Malloc(posix_memalign)(memptr, alignment, size);
|
/bionic/libc/kernel/uapi/linux/ |
H A D | som.h | 164 unsigned int alignment : 27; member in struct:subspace_dictionary_record
|
/bionic/libc/kernel/uapi/drm/ |
H A D | amdgpu_drm.h | 66 uint64_t alignment; member in struct:drm_amdgpu_gem_create_in
|
H A D | i915_drm.h | 359 int alignment; member in struct:drm_i915_mem_alloc 475 __u64 alignment; member in struct:drm_i915_gem_exec_object 496 __u64 alignment; member in struct:drm_i915_gem_exec_object2 560 __u64 alignment; member in struct:drm_i915_gem_pin
|
H A D | radeon_drm.h | 692 int alignment; member in struct:drm_radeon_mem_alloc 760 uint64_t alignment; member in struct:drm_radeon_gem_create
|