/external/skia/gm/ |
H A D | verttext2.cpp | 68 sk_sp<SkTypeface> family, SkPaint::Align alignment) { 73 paint.setTextAlign(alignment); 78 SkIntToScalar(alignment == SkPaint::kLeft_Align ? 10 : 240), 67 drawText(SkCanvas* canvas, const SkString& string, sk_sp<SkTypeface> family, SkPaint::Align alignment) argument
|
/external/skqp/gm/ |
H A D | verttext2.cpp | 68 sk_sp<SkTypeface> family, SkPaint::Align alignment) { 73 paint.setTextAlign(alignment); 78 SkIntToScalar(alignment == SkPaint::kLeft_Align ? 10 : 240), 67 drawText(SkCanvas* canvas, const SkString& string, sk_sp<SkTypeface> family, SkPaint::Align alignment) argument
|
/external/syslinux/com32/lib/sys/module/ |
H A D | elfutils.c | 39 int elf_malloc(void **memptr, size_t alignment, size_t size) { argument 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_ argument [all...] |
/external/tensorflow/tensorflow/compiler/xla/service/cpu/ |
H A D | external_constant_pool_test.cc | 68 int64 alignment = 1 << i; local 72 constant_pool.Insert(name, *literal, alignment); 76 EXPECT_EQ(reinterpret_cast<intptr_t>(constant) % alignment, 0);
|
/external/tensorflow/tensorflow/core/common_runtime/ |
H A D | allocator_retry.cc | 27 std::function<void*(size_t alignment, size_t num_bytes, 30 int max_millis_to_wait, size_t alignment, size_t num_bytes) { 39 ptr = alloc_func(alignment, num_bytes, false); 51 return alloc_func(alignment, num_bytes, true); 26 AllocateRaw( std::function<void*(size_t alignment, size_t num_bytes, bool verbose_failure)> alloc_func, int max_millis_to_wait, size_t alignment, size_t num_bytes) argument
|
/external/tensorflow/tensorflow/core/common_runtime/gpu/ |
H A D | pool_allocator_test.cc | 38 EXPECT_EQ(nullptr, pool.AllocateRaw(4 /*alignment*/, 0 /*num_bytes*/)); 89 size_t alignment = 1 << i; local 90 void* p = pool.AllocateRaw(alignment, 111); 92 EXPECT_EQ(0, reinterpret_cast<int64>(p) & (alignment - 1)) 93 << "ptr: " << p << " alignment " << alignment; local
|
H A D | gpu_cudamalloc_allocator.cc | 38 void* GPUcudaMallocAllocator::AllocateRaw(size_t alignment, size_t num_bytes) { argument
|
/external/v8/src/ |
H A D | allocation.cc | 54 void* AlignedAlloc(size_t size, size_t alignment) { argument 55 DCHECK_LE(V8_ALIGNOF(void*), alignment); local 56 DCHECK(base::bits::IsPowerOfTwo64(alignment)); 59 ptr = _aligned_malloc(size, alignment); 63 ptr = memalign(alignment, size); 65 if (posix_memalign(&ptr, alignment, size)) ptr = NULL;
|
/external/v8/src/compiler/ |
H A D | frame.cc | 21 int Frame::AlignFrame(int alignment) { argument 22 int alignment_slots = alignment / kPointerSize;
|
/external/webrtc/webrtc/system_wrappers/source/ |
H A D | aligned_malloc_unittest.cc | 25 // Returns true if |size| and |alignment| are valid combinations. 26 bool CorrectUsage(size_t size, size_t alignment) { argument 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 local 71 size_t alignment = 32; local 77 size_t alignment = 128; local [all...] |
H A D | 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) { argument 29 // The pointer should be aligned with |alignment| bytes. The - 1 guarantees 31 return (start_pos + alignment - 1) & ~(alignment - 1); 35 bool ValidAlignment(size_t alignment) { argument 36 if (!alignment) { 39 return (alignment & (alignment 42 GetRightAlign(const void* pointer, size_t alignment) argument 53 AlignedMalloc(size_t size, size_t alignment) argument [all...] |
/external/fio/ |
H A D | cairo_text_helpers.c | 6 double fontsize, const char *text, int alignment) 15 switch (alignment) { 5 draw_aligned_text(cairo_t *cr, const char *font, double x, double y, double fontsize, const char *text, int alignment) argument
|
/external/libchrome/base/allocator/ |
H A D | allocator_shim_default_dispatch_to_linker_wrapped_symbols.cc | 54 size_t alignment, 57 return __real_memalign(alignment, size); 53 RealMemalign(const AllocatorDispatch*, size_t alignment, size_t size, void* context) argument
|
/external/libchrome/base/ |
H A D | bits.h | 51 // Round up |size| to a multiple of alignment, which must be a power of two. 52 inline size_t Align(size_t size, size_t alignment) { argument 53 DCHECK_EQ(alignment & (alignment - 1), 0u); 54 return (size + alignment - 1) & ~(alignment - 1);
|
/external/libdrm/tests/radeon/ |
H A D | rbo.c | 37 unsigned alignment, void *ptr) 51 bo->alignment = alignment; 68 args.alignment = alignment; 78 fprintf(stderr, " alignment : %d bytes\n", alignment); 36 rbo(int fd, unsigned handle, unsigned size, unsigned alignment, void *ptr) argument
|
/external/mesa3d/src/gallium/auxiliary/util/ |
H A D | u_memory.h | 67 align_calloc(size_t size, unsigned long alignment) argument 69 void *ptr = align_malloc(size, alignment);
|
H A D | u_suballoc.c | 85 unsigned alignment, unsigned *out_offset, 88 allocator->offset = align(allocator->offset, alignment); 118 assert(allocator->offset % alignment == 0); 84 u_suballocator_alloc(struct u_suballocator *allocator, unsigned size, unsigned alignment, unsigned *out_offset, struct pipe_resource **outbuf) argument
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
H A D | brw_state_batch.c | 124 int alignment, 133 offset = ROUND_DOWN_TO(batch->state_batch_offset - size, alignment); 142 offset = ROUND_DOWN_TO(batch->state_batch_offset - size, alignment); 121 __brw_state_batch(struct brw_context *brw, enum aub_state_struct_type type, int size, int alignment, int index, uint32_t *out_offset) argument
|
/external/pdfium/third_party/base/ |
H A D | bits.h | 52 // Round up |size| to a multiple of alignment, which must be a power of two. 53 inline size_t Align(size_t size, size_t alignment) { argument 54 DCHECK_EQ(alignment & (alignment - 1), 0u); 55 return (size + alignment - 1) & ~(alignment - 1);
|
/external/skia/src/sksl/ |
H A D | SkSLMemoryLayout.h | 43 * Returns a type's required alignment when used as a standalone variable. 45 size_t alignment(const Type& type) const { function in class:SkSL::MemoryLayout 56 return this->roundUpIfNeeded(this->alignment(type.componentType())); 60 size_t alignment = this->alignment(*f.fType); local 61 if (alignment > result) { 62 result = alignment; 80 return this->alignment(type); 106 size_t alignment = this->alignment(* local 113 size_t alignment = this->alignment(type); local [all...] |
/external/skqp/src/sksl/ |
H A D | SkSLMemoryLayout.h | 43 * Returns a type's required alignment when used as a standalone variable. 45 size_t alignment(const Type& type) const { function in class:SkSL::MemoryLayout 56 return this->roundUpIfNeeded(this->alignment(type.componentType())); 60 size_t alignment = this->alignment(*f.fType); local 61 if (alignment > result) { 62 result = alignment; 80 return this->alignment(type); 106 size_t alignment = this->alignment(* local 113 size_t alignment = this->alignment(type); local [all...] |
/external/tcpdump/ |
H A D | cpack.c | 42 cpack_next_boundary(const uint8_t *buf, const uint8_t *p, size_t alignment) argument 44 size_t misalignment = (size_t)(p - buf) % alignment; 49 return p + (alignment - misalignment); 61 /* Ensure alignment. */
|
/external/webrtc/webrtc/system_wrappers/include/ |
H A D | aligned_array.h | 20 // aligned to the given byte alignment. 23 AlignedArray(size_t rows, size_t cols, size_t alignment) argument 26 RTC_CHECK_GT(alignment, 0u); 28 alignment)); 31 alignment));
|
/external/ImageMagick/MagickCore/ |
H A D | semaphore.c | 134 #define AlignedExtent(size,alignment) \ local 135 (((size)+((alignment)-1)) & ~((alignment)-1)) 138 alignment, 152 alignment=CACHE_LINE_SIZE; 153 extent=AlignedExtent(size,alignment); 154 if ((size == 0) || (alignment < sizeof(void *)) || (extent < size)) 157 if (posix_memalign(&memory,alignment,extent) != 0) 160 memory=_aligned_malloc(extent,alignment); 166 extent=(size+alignment [all...] |
/external/clang/lib/AST/ |
H A D | RecordLayout.cpp | 30 CharUnits alignment, 34 : Size(size), DataSize(datasize), Alignment(alignment), 41 CharUnits size, CharUnits alignment, 57 : Size(size), DataSize(datasize), Alignment(alignment), 29 ASTRecordLayout(const ASTContext &Ctx, CharUnits size, CharUnits alignment, CharUnits requiredAlignment, CharUnits datasize, ArrayRef<uint64_t> fieldoffsets) argument 40 ASTRecordLayout(const ASTContext &Ctx, CharUnits size, CharUnits alignment, CharUnits requiredAlignment, bool hasOwnVFPtr, bool hasExtendableVFPtr, CharUnits vbptroffset, CharUnits datasize, ArrayRef<uint64_t> fieldoffsets, CharUnits nonvirtualsize, CharUnits nonvirtualalignment, CharUnits SizeOfLargestEmptySubobject, const CXXRecordDecl *PrimaryBase, bool IsPrimaryBaseVirtual, const CXXRecordDecl *BaseSharingVBPtr, bool EndsWithZeroSizedObject, bool LeadsWithZeroSizedBase, const BaseOffsetsMapTy& BaseOffsets, const VBaseOffsetsMapTy& VBaseOffsets) argument
|