/external/webrtc/src/system_wrappers/source/ |
H A D | aligned_malloc.cc | 34 // Ok reference on memory alignment: 35 // http://stackoverflow.com/questions/227897/solve-the-memory-alignment-in-c-interview-question-that-stumped-me 48 void* AlignedMalloc(size_t size, size_t alignment) argument 50 if(alignment == 0) 52 // Don't allow alignment 0 since it's undefined. 55 // Make sure that the alignment is an integer power of two or fail. 56 if(alignment & (alignment - 1)) 68 // alignment - 1 bytes needs to be allocated. 72 alignment [all...] |
/external/vixl/src/ |
H A D | utils-vixl.h | 159 // Pointer alignment 167 // Increment a pointer until it has the specified alignment. 169 T AlignUp(T pointer, size_t alignment) { argument 172 size_t align_step = (alignment - pointer_raw) % alignment; 173 VIXL_ASSERT((pointer_raw + align_step) % alignment == 0); 177 // Decrement a pointer until it has the specified alignment. 179 T AlignDown(T pointer, size_t alignment) { argument 182 size_t align_step = pointer_raw % alignment; 183 VIXL_ASSERT((pointer_raw - align_step) % alignment [all...] |
/external/valgrind/main/exp-sgcheck/ |
H A D | h_main.c | 304 SizeT size, SizeT alignment, Bool is_zeroed ) 310 p = (Addr)VG_(cli_malloc)(alignment, size); 303 alloc_and_new_mem_heap( ThreadId tid, SizeT size, SizeT alignment, Bool is_zeroed ) argument
|
/external/valgrind/main/include/vki/ |
H A D | vki-linux-drm.h | 677 int alignment; member in struct:vki_drm_i915_mem_alloc 759 __vki_u64 alignment; member in struct:vki_drm_i915_gem_exec_object 775 __vki_u64 alignment; member in struct:vki_drm_i915_gem_pin
|
/external/tcpdump/ |
H A D | cpack.c | 42 cpack_next_boundary(u_int8_t *buf, u_int8_t *p, size_t alignment) argument 44 size_t misalignment = (size_t)(p - buf) % alignment; 49 return p + (alignment - misalignment); 61 /* Ensure alignment. */
|
/external/strace/linux/ |
H A D | ubi-user.h | 274 * @alignment: volume alignment 285 * The @alignment field specifies the required alignment of the volume logical 288 * (UBI device logical eraseblock size) mod (@alignment) = 0. 291 * shortened in order to make it properly aligned. The alignment has to be 295 * The @alignment field may be useful, for example, when one wants to maintain 298 * alignment it is possible to update this volume using plane UBI volume image 303 __s32 alignment; member in struct:ubi_mkvol_req
|
/external/skia/src/gpu/ |
H A D | GrBufferAllocPool.cpp | 154 size_t alignment, 166 alignment); 153 makeSpace(size_t size, size_t alignment, const GrGeometryBuffer** buffer, size_t* offset) argument
|
/external/skia/src/gpu/gl/debug/ |
H A D | GrGLCreateDebugInterface.cpp | 161 GrGLint alignment = 4; // the pack alignment (one of 1, 2, 4 or 8) local 176 if (componentSize >= alignment) { 181 static_cast<float>(alignment)); 182 rowStride = static_cast<GrGLint>(alignment * fTemp / componentSize);
|
/external/smali/util/src/main/java/org/jf/util/ |
H A D | AlignmentUtils.java | 32 public static int alignOffset(int offset, int alignment) { argument 33 int mask = alignment - 1; 34 assert (alignment >= 0) && ((mask & alignment) == 0); 38 public static boolean isAligned(int offset, int alignment) { argument 39 return (offset % alignment) == 0;
|
/external/skia/gm/ |
H A D | verttext2.cpp | 75 SkTypeface* family, SkPaint::Align alignment) { 80 paint.setTextAlign(alignment); 85 SkIntToScalar(alignment == SkPaint::kLeft_Align ? 10 : 240), 74 drawText(SkCanvas* canvas, const SkString& string, SkTypeface* family, SkPaint::Align alignment) argument
|
/external/skia/include/gpu/ |
H A D | GrTypes.h | 121 static inline uint32_t GrUIAlignUp(uint32_t x, uint32_t alignment) { argument 122 return GrUIDivRoundUp(x, alignment) * alignment; 124 static inline size_t GrSizeAlignUp(size_t x, size_t alignment) { argument 125 return GrSizeDivRoundUp(x, alignment) * alignment; 134 static inline uint32_t GrUIAlignUpPad(uint32_t x, uint32_t alignment) { argument 135 return (alignment - x % alignment) % alignment; 137 GrSizeAlignUpPad(size_t x, size_t alignment) argument 144 GrUIAlignDown(uint32_t x, uint32_t alignment) argument 147 GrSizeAlignDown(size_t x, uint32_t alignment) argument [all...] |
/external/robolectric/lib/main/ |
H A D | android.jar | META-INF/ META-INF/MANIFEST.MF com/ com/android/ com/android/internal/ com/android/internal/util/ ... |
H A D | maps_v16.jar | com/google/android/maps/GeoPoint.class " package com.google.android.maps public com.google ... |
/external/qemu/distrib/sdl-1.2.15/src/stdlib/ |
H A D | SDL_malloc.c | 249 Controls the minimum alignment for malloc'ed chunks. It must be a 253 the case of 8-byte alignment. 763 memalign(size_t alignment, size_t n); 765 in accord with the alignment argument. 767 The alignment argument should be a power of two. If the argument is 769 8-byte alignment is guaranteed by normal malloc calls, so don't 1004 often not) due to alignment and minimum size constraints. 1023 because of alignment and bookkeeping overhead. Because it includes 1024 alignment wastage as being in use, this figure may be greater than 1115 void* mspace_memalign(mspace msp, size_t alignment, size_ 3853 internal_memalign(mstate m, size_t alignment, size_t bytes) argument 4341 dlmemalign(size_t alignment, size_t bytes) argument 4745 mspace_memalign(mspace msp, size_t alignment, size_t bytes) argument [all...] |
/external/qemu/util/ |
H A D | oslib-posix.c | 39 /* Use 2 MiB alignment so transparent hugepages can be used by KVM. 44 /* Use 1 MiB (segment size) alignment so gmap can be used by KVM. */ 88 void *qemu_memalign(size_t alignment, size_t size) argument 93 ret = posix_memalign(&ptr, alignment, size); 102 ptr = qemu_oom_check(memalign(alignment, size)); 104 //trace_qemu_memalign(alignment, size, ptr);
|
H A D | oslib-win32.c | 48 void *qemu_memalign(size_t alignment, size_t size) argument 56 //trace_qemu_memalign(alignment, size, ptr);
|
/external/protobuf/src/google/protobuf/ |
H A D | dynamic_message.cc | 148 inline int AlignTo(int offset, int alignment) { argument 149 return DivideRoundingUp(offset, alignment) * alignment; 528 // alignment is not necessary.
|
/external/pdfium/core/include/fpdfdoc/ |
H A D | fpdf_vt.h | 169 CPVT_SecProps(FX_FLOAT lineLeading, FX_FLOAT lineIndent, FX_INT32 alignment) :
argument 170 fLineLeading(lineLeading), fLineIndent(lineIndent), nAlignment(alignment)
|
/external/pdfium/core/src/fxge/Microsoft SDK/include/ |
H A D | GdiPlusStringFormat.h | 114 StringAlignment alignment;
local 117 &alignment
119 return alignment;
132 StringAlignment alignment;
local 135 &alignment
137 return alignment;
|
/external/pdfium/fpdfsdk/src/javascript/ |
H A D | Field.cpp | 29 JS_STATIC_PROP_ENTRY(alignment)
380 FX_BOOL Field::alignment(OBJ_PROP_PARAMS)
function in class:Field
|
/external/netperf/ |
H A D | netlib.c | 239 /* at it. the real structure will be forced to the same alignment as */ 1228 allocate_buffer_ring(int width, int buffer_size, int alignment, int offset) 1245 malloc_size = buffer_size + alignment + offset; 1284 (long)alignment - 1) & 1285 ~((long)alignment - 1)); 1288 (ULONG_PTR)alignment - 1) & 1289 ~((ULONG_PTR)alignment - 1)); 1390 allocate_exs_buffer_ring (int width, int buffer_size, int alignment, int offset, exs_mhandle_t *mhandlep) 1408 malloc_size = buffer_size + alignment + offset; 1428 "width=%d buffer_size=%d alignment 1215 allocate_buffer_ring(int width, int buffer_size, int alignment, int offset) argument 1376 allocate_exs_buffer_ring(int width, int buffer_size, int alignment, int offset, exs_mhandle_t *mhandlep) argument 1514 alloc_sendfile_buf_ring(int width, int buffer_size, int alignment, int offset) argument [all...] |
/external/mesa3d/src/mesa/state_tracker/ |
H A D | st_context.c | 148 unsigned alignment = local 151 st->constbuf_uploader = u_upload_create(pipe, 128 * 1024, alignment,
|
/external/mesa3d/src/gallium/auxiliary/draw/ |
H A D | draw_vs.c | 64 const int alignment = 16; local 67 if (((uintptr_t)constants) & (alignment - 1)) { 75 align_malloc(size, alignment);
|
/external/mesa3d/src/gallium/auxiliary/gallivm/ |
H A D | lp_bld_debug.cpp | 66 * Check alignment. 69 * function, as the compiler assumptions in respect to alignment of global 74 lp_check_alignment(const void *ptr, unsigned alignment) argument 76 assert(util_is_power_of_two(alignment)); 77 return ((uintptr_t)ptr & (alignment - 1)) == 0;
|
H A D | lp_bld_struct.c | 153 unsigned alignment) 160 lp_set_load_alignment(res, alignment); 185 unsigned alignment) 191 lp_set_store_alignment(instr, alignment); 150 lp_build_pointer_get_unaligned(LLVMBuilderRef builder, LLVMValueRef ptr, LLVMValueRef index, unsigned alignment) argument 181 lp_build_pointer_set_unaligned(LLVMBuilderRef builder, LLVMValueRef ptr, LLVMValueRef index, LLVMValueRef value, unsigned alignment) argument
|