Home
last modified time | relevance | path

Searched refs:alignment (Results 1 – 5 of 5) sorted by relevance

/system/extras/micro_bench/
Dmicro_bench.cpp96 uint8_t *getAlignedMemory(uint8_t *orig_ptr, int alignment, int or_mask) { in getAlignedMemory() argument
98 if (alignment > 0) { in getAlignedMemory()
102 ptr += alignment - (ptr & (alignment - 1)); in getAlignedMemory()
103 ptr |= alignment | or_mask; in getAlignedMemory()
112 uint8_t *allocateAlignedMemory(size_t size, int alignment, int or_mask) { in allocateAlignedMemory() argument
113 uint64_t ptr = reinterpret_cast<uint64_t>(malloc(size + 3 * alignment)); in allocateAlignedMemory()
116 return getAlignedMemory((uint8_t*)ptr, alignment, or_mask); in allocateAlignedMemory()
156 int getAlignmentIncrement(size_t size, int alignment) { in getAlignmentIncrement() argument
157 if (alignment == 0) { in getAlignmentIncrement()
158 alignment = DEFAULT_MALLOC_MEMORY_ALIGNMENT; in getAlignmentIncrement()
[all …]
/system/media/camera/src/
Dcamera_metadata.c38 #define ALIGN_TO(val, alignment) \ argument
39 (((uintptr_t)(val) + ((alignment) - 1)) & ~((alignment) - 1))
305 size_t alignment; in validate_camera_metadata_structure() member
309 .alignment = _Alignas(struct camera_metadata) in validate_camera_metadata_structure()
313 .alignment = _Alignas(struct camera_metadata_buffer_entry) in validate_camera_metadata_structure()
317 .alignment = _Alignas(union camera_metadata_data) in validate_camera_metadata_structure()
322 uintptr_t aligned_ptr = ALIGN_TO(metadata, alignments[i].alignment); in validate_camera_metadata_structure()
/system/extras/libc_test/
Dmain.cpp69 void *getAlignedPtr(void *orig_ptr, int alignment, int or_mask) { in getAlignedPtr() argument
71 if (alignment > 0) { in getAlignedPtr()
75 ptr += alignment - (ptr & (alignment - 1)); in getAlignedPtr()
76 ptr |= alignment | or_mask; in getAlignedPtr()
/system/core/init/
Dreadme.txt281 write /proc/cpu/alignment 4
/system/core/rootdir/
Dinit.rc87 write /proc/cpu/alignment 4