Searched refs:or_mask (Results 1 - 2 of 2) sorted by relevance

/system/extras/libc_test/
H A Dmain.cpp69 void *getAlignedPtr(void *orig_ptr, int alignment, int or_mask) { argument
76 ptr |= alignment | or_mask;
361 bool doStrlenCheck(size_t size, char *string, int align, int or_mask,
363 char *aligned_string = reinterpret_cast<char*>(getAlignedPtr(string, align, or_mask));
366 printf("Testing size %d, align=%p[%d,%d]\n", size, aligned_string, align, or_mask);
373 size, len, aligned_string, align, or_mask);
379 size, aligned_string, align, or_mask);
389 size, len, aligned_string, align, or_mask);
/system/extras/micro_bench/
H A Dmicro_bench.cpp96 uint8_t *getAlignedMemory(uint8_t *orig_ptr, int alignment, int or_mask) { argument
103 ptr |= alignment | or_mask;
112 uint8_t *allocateAlignedMemory(size_t size, int alignment, int or_mask) { argument
116 return getAlignedMemory((uint8_t*)ptr, alignment, or_mask);
164 uint8_t *getColdBuffer(int num_buffers, size_t incr, int alignment, int or_mask) { argument
169 return getAlignedMemory(buffers, alignment, or_mask);

Completed in 261 milliseconds