Searched defs:alignment (Results 1 - 10 of 10) sorted by relevance

/bionic/tests/libs/
H A Dbionic_tests_zipalign.cpp32 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 Dubi-user.h71 __s32 alignment; member in struct:ubi_mkvol_req
/bionic/libc/malloc_debug/
H A Dmalloc_debug.cpp75 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 Dbuffer_tests.cpp31 // 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 Dpthread_test.cpp1697 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 Dmalloc_common.cpp120 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 Dsom.h164 unsigned int alignment : 27; member in struct:subspace_dictionary_record
/bionic/libc/kernel/uapi/drm/
H A Damdgpu_drm.h66 uint64_t alignment; member in struct:drm_amdgpu_gem_create_in
H A Di915_drm.h359 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 Dradeon_drm.h692 int alignment; member in struct:drm_radeon_mem_alloc
760 uint64_t alignment; member in struct:drm_radeon_gem_create

Completed in 284 milliseconds