/external/chromium_org/third_party/WebKit/Source/platform/graphics/gpu/ |
H A D | WebGLImageConversion.cpp | 1494 GLenum WebGLImageConversion::computeImageSizeInBytes(GLenum format, GLenum type, GLsizei width, GLsizei height, GLint alignment, unsigned* imageSizeInBytes, unsigned* paddingInBytes) argument 1497 ASSERT(alignment == 1 || alignment == 2 || alignment == 4 || alignment == 8); 1515 unsigned residual = validRowSize % alignment; 1517 padding = alignment - residual; 1671 // Output data is tightly packed (alignment == 1). 1698 // Output data is tightly packed (alignment == 1).
|
/external/chromium_org/third_party/angle/src/libGLESv2/ |
H A D | angletypes.h | 190 GLint alignment; member in struct:gl::PixelUnpackState 193 : alignment(4) 197 : alignment(alignmentIn) 204 GLint alignment; member in struct:gl::PixelPackState 208 : alignment(4), 213 : alignment(alignmentIn),
|
/external/chromium_org/third_party/cython/src/Cython/Utility/ |
H A D | Buffer.c | 207 The alignment code is copied from _struct.c in Python. 708 size_t alignment = ctx->struct_alignment; local 712 if (alignment && ctx->fmt_offset % alignment) { 714 ctx->fmt_offset += alignment - (ctx->fmt_offset % alignment);
|
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/llvmpipe/ |
H A D | lp_texture.c | 124 unsigned alignment, nblocksx, nblocksy, block_size; local 130 alignment = 1; 132 alignment = TILE_SIZE; 135 align(width, alignment)); 137 align(height, alignment)); 974 uint alignment = MAX2(16, util_cpu_caps.cacheline); local 982 lpr->tiled[level].data = align_malloc(buffer_size, alignment); 1003 lpr->linear[level].data = align_malloc(buffer_size, alignment);
|
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/radeon/ |
H A D | AMDILPeepholeOptimizer.cpp | 103 // If the alignment is set incorrectly, it can produce really inefficient 947 unsigned alignment; local 950 alignment = linst->getAlignment(); 953 alignment = sinst->getAlignment(); 959 if (size == alignment || size < alignment) { 965 if (alignment < 4) {
|
/external/chromium_org/third_party/mesa/src/src/gallium/winsys/radeon/drm/ |
H A D | radeon_drm_bo.c | 199 static uint64_t radeon_bomgr_find_va(struct radeon_bomgr *mgr, uint64_t size, uint64_t alignment) argument 209 if (alignment) { 210 waste = offset % alignment; 211 waste = waste ? alignment - waste : 0; 245 if (alignment) { 246 waste = offset % alignment; 247 waste = waste ? alignment - waste : 0; 554 args.alignment = desc->alignment; 561 fprintf(stderr, "radeon: alignment 813 radeon_winsys_bo_create(struct radeon_winsys *rws, unsigned size, unsigned alignment, unsigned bind, enum radeon_bo_domain domain) argument [all...] |
/external/chromium_org/third_party/mesa/src/src/glx/ |
H A D | glxclient.h | 178 GLuint alignment; member in struct:__GLXpixelStoreModeRec
|
/external/chromium_org/third_party/tcmalloc/chromium/src/ |
H A D | debugallocation.cc | 286 // This, combined with BASE_MALLOC's alignment guarantees, 683 // just going to error-exit below anyway. Union is for alignment. 684 union { void* alignment; char buf[sizeof(SymbolTable)]; } tablebuf; member in union:MallocBlock::__anon15557 1281 // Round "value" up to next "alignment" boundary. 1282 // Requires that "alignment" be a power of two. 1283 static intptr_t RoundUp(intptr_t value, intptr_t alignment) { argument 1284 return (value + alignment - 1) & ~(alignment - 1); 1288 static void *do_debug_memalign(size_t alignment, size_t size) { argument 1289 // Allocate >= size bytes aligned on "alignment" boundar [all...] |
/external/chromium_org/third_party/tcmalloc/vendor/src/ |
H A D | debugallocation.cc | 288 // This, combined with BASE_MALLOC's alignment guarantees, 687 // just going to error-exit below anyway. Union is for alignment. 688 union { void* alignment; char buf[sizeof(SymbolTable)]; } tablebuf; member in union:MallocBlock::__anon15601 1269 // Round "value" up to next "alignment" boundary. 1270 // Requires that "alignment" be a power of two. 1271 static intptr_t RoundUp(intptr_t value, intptr_t alignment) { argument 1272 return (value + alignment - 1) & ~(alignment - 1); 1276 static void *do_debug_memalign(size_t alignment, size_t size) { argument 1277 // Allocate >= size bytes aligned on "alignment" boundar [all...] |
/external/chromium_org/ui/gfx/ |
H A D | render_text_unittest.cc | 1515 // Check the default horizontal alignment. 1519 // Check explicitly setting the horizontal alignment. 1544 // This only checks the default horizontal alignment in RTL mode; all other 1578 HorizontalAlignment alignment; member in struct:gfx::__anon16889 1593 render_text->SetHorizontalAlignment(small_content_cases[i].alignment); 1605 HorizontalAlignment alignment; member in struct:gfx::__anon16890 1628 render_text->SetHorizontalAlignment(large_content_cases[i].alignment);
|
/external/chromium_org/ui/views/controls/menu/ |
H A D | native_menu_win.cc | 418 void NativeMenuWin::RunMenuAt(const gfx::Point& point, int alignment) { argument 422 flags |= GetAlignmentFlags(alignment); 720 UINT NativeMenuWin::GetAlignmentFlags(int alignment) const { 722 if (alignment == Menu2::ALIGN_TOPLEFT) 724 else if (alignment == Menu2::ALIGN_TOPRIGHT)
|
/external/chromium_org/v8/src/ia32/ |
H A D | codegen-ia32.cc | 111 // esi - source, aligned if alignment == ALIGNED 118 Alignment alignment) { 129 __ movdq(alignment == MOVE_ALIGNED, xmm0, Operand(src, 0x00)); 130 __ movdq(alignment == MOVE_ALIGNED, xmm1, Operand(src, 0x10)); 131 __ movdq(alignment == MOVE_ALIGNED, xmm2, Operand(src, 0x20)); 132 __ movdq(alignment == MOVE_ALIGNED, xmm3, Operand(src, 0x30)); 147 __ movdq(alignment == MOVE_ALIGNED, xmm0, Operand(src, 0x00)); 148 __ movdq(alignment == MOVE_ALIGNED, xmm1, Operand(src, 0x10)); 159 __ movdq(alignment == MOVE_ALIGNED, xmm0, Operand(src, 0)); 260 // Determine distance to alignment 115 MemMoveEmitMainLoop(MacroAssembler* masm, Label* move_last_15, Direction direction, Alignment alignment) argument [all...] |
/external/chromium_org/v8/src/ |
H A D | utils.h | 123 inline bool IsAligned(T value, U alignment) { argument 124 return (value & (alignment - 1)) == 0; 130 intptr_t alignment, 133 return IsAligned(offs, alignment); 129 IsAddressAligned(Address addr, intptr_t alignment, int offset = 0) argument
|
/external/clang/lib/CodeGen/ |
H A D | CGValue.h | 135 // The alignment to use when accessing this lvalue. (For vector elements, 136 // this is the alignment of the whole vector.) 295 CharUnits alignment, ASTContext &Context, 303 R.Initialize(type, qs, alignment, TBAAInfo); 294 MakeAddr(llvm::Value *address, QualType type, CharUnits alignment, ASTContext &Context, llvm::MDNode *TBAAInfo = nullptr) argument
|
/external/compiler-rt/lib/asan/ |
H A D | asan_allocator2.cc | 283 static void *Allocate(uptr size, uptr alignment, StackTrace *stack, argument 290 if (alignment < min_alignment) 291 alignment = min_alignment; 300 CHECK(IsPowerOfTwo(alignment)); 303 uptr rounded_size = RoundUpTo(Max(size, kChunkHeader2Size), alignment); 305 if (alignment > min_alignment) 306 needed_size += alignment; 310 if (!PrimaryAllocator::CanAllocate(needed_size, alignment)) { 345 if (!IsAligned(user_beg, alignment)) 346 user_beg = RoundUpTo(user_beg, alignment); 592 asan_memalign(uptr alignment, uptr size, StackTrace *stack, AllocType alloc_type) argument 640 asan_posix_memalign(void **memptr, uptr alignment, uptr size, StackTrace *stack) argument [all...] |
/external/compiler-rt/lib/lsan/ |
H A D | lsan_common.cc | 164 const uptr alignment = flags()->pointer_alignment(); local 167 if (pp % alignment) 168 pp = pp + alignment - pp % alignment; 169 for (; pp + sizeof(void *) <= end; pp += alignment) { // NOLINT
|
/external/deqp/modules/gles31/functional/ |
H A D | es31fTextureSpecificationTests.cpp | 410 int alignment, 419 , m_alignment (alignment) 497 int alignment, 512 , m_alignment (alignment) 723 int alignment = 4; local 724 int rowPitch = deAlign32(rowLength*pixelSize, alignment); 751 glPixelStorei(GL_UNPACK_ALIGNMENT, alignment); 876 int alignment; member in struct:deqp::gles31::Functional::__anon20363 910 parameterCases[ndx].alignment, 965 int alignment; member in struct:deqp::gles31::Functional::__anon20364 399 TexImageCubeArrayBufferCase(Context& context, const char* name, const char* desc, deUint32 internalFormat, int size, int depth, int imageHeight, int rowLength, int skipImages, int skipRows, int skipPixels, int alignment, int offset) argument 480 TexSubImageCubeArrayBufferCase(Context& context, const char* name, const char* desc, deUint32 internalFormat, int size, int depth, int subX, int subY, int subZ, int subW, int subH, int subD, int imageHeight, int rowLength, int skipImages, int skipRows, int skipPixels, int alignment, int offset) argument [all...] |
/external/deqp/modules/glshared/ |
H A D | glsTextureBufferCase.cpp | 1015 deInt32 alignment = 0; local 1017 gl.getIntegerv(GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT, &alignment); 1020 offset = m_offset * alignment;
|
/external/jemalloc/src/ |
H A D | jemalloc.c | 959 imemalign_prof_sample(size_t alignment, size_t usize, prof_thr_cnt_t *cnt) argument 966 assert(sa2u(SMALL_MAXCLASS+1, alignment) != 0); 967 p = ipalloc(sa2u(SMALL_MAXCLASS+1, alignment), alignment, 973 p = ipalloc(usize, alignment, false); 979 imemalign_prof(size_t alignment, size_t usize, prof_thr_cnt_t *cnt) argument 984 p = imemalign_prof_sample(alignment, usize, cnt); 986 p = ipalloc(usize, alignment, false); 996 imemalign(void **memptr, size_t alignment, size_t size, size_t min_alignment) argument 1011 /* Make sure that alignment i 1062 je_posix_memalign(void **memptr, size_t alignment, size_t size) argument 1071 je_aligned_alloc(size_t alignment, size_t size) argument 1324 je_memalign(size_t alignment, size_t size) argument 1378 imallocx(size_t usize, size_t alignment, bool zero, bool try_tcache, arena_t *arena) argument 1394 imallocx_prof_sample(size_t usize, size_t alignment, bool zero, bool try_tcache, arena_t *arena, prof_thr_cnt_t *cnt) argument 1417 imallocx_prof(size_t usize, size_t alignment, bool zero, bool try_tcache, arena_t *arena, prof_thr_cnt_t *cnt) argument 1439 size_t alignment = (ZU(1) << (flags & MALLOCX_LG_ALIGN_MASK) local 1490 irallocx_prof_sample(void *oldptr, size_t size, size_t alignment, size_t usize, bool zero, bool try_tcache_alloc, bool try_tcache_dalloc, arena_t *arena, prof_thr_cnt_t *cnt) argument 1514 irallocx_prof(void *oldptr, size_t old_usize, size_t size, size_t alignment, size_t *usize, bool zero, bool try_tcache_alloc, bool try_tcache_dalloc, arena_t *arena, prof_thr_cnt_t *cnt) argument 1554 size_t alignment = (ZU(1) << (flags & MALLOCX_LG_ALIGN_MASK) local 1624 ixallocx_helper(void *ptr, size_t old_usize, size_t size, size_t extra, size_t alignment, bool zero, arena_t *arena) argument 1637 ixallocx_prof_sample(void *ptr, size_t old_usize, size_t size, size_t extra, size_t alignment, size_t max_usize, bool zero, arena_t *arena, prof_thr_cnt_t *cnt) argument 1664 ixallocx_prof(void *ptr, size_t old_usize, size_t size, size_t extra, size_t alignment, size_t max_usize, bool zero, arena_t *arena, prof_thr_cnt_t *cnt) argument 1691 size_t alignment = (ZU(1) << (flags & MALLOCX_LG_ALIGN_MASK) local 1802 size_t alignment = (ZU(1) << (flags & MALLOCX_LG_ALIGN_MASK) local [all...] |
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
H A D | lp_texture.c | 124 unsigned alignment, nblocksx, nblocksy, block_size; local 130 alignment = 1; 132 alignment = TILE_SIZE; 135 align(width, alignment)); 137 align(height, alignment)); 974 uint alignment = MAX2(16, util_cpu_caps.cacheline); local 982 lpr->tiled[level].data = align_malloc(buffer_size, alignment); 1003 lpr->linear[level].data = align_malloc(buffer_size, alignment);
|
/external/mesa3d/src/gallium/drivers/radeon/ |
H A D | AMDILPeepholeOptimizer.cpp | 103 // If the alignment is set incorrectly, it can produce really inefficient 947 unsigned alignment; local 950 alignment = linst->getAlignment(); 953 alignment = sinst->getAlignment(); 959 if (size == alignment || size < alignment) { 965 if (alignment < 4) {
|
/external/mesa3d/src/gallium/winsys/radeon/drm/ |
H A D | radeon_drm_bo.c | 199 static uint64_t radeon_bomgr_find_va(struct radeon_bomgr *mgr, uint64_t size, uint64_t alignment) argument 209 if (alignment) { 210 waste = offset % alignment; 211 waste = waste ? alignment - waste : 0; 245 if (alignment) { 246 waste = offset % alignment; 247 waste = waste ? alignment - waste : 0; 554 args.alignment = desc->alignment; 561 fprintf(stderr, "radeon: alignment 813 radeon_winsys_bo_create(struct radeon_winsys *rws, unsigned size, unsigned alignment, unsigned bind, enum radeon_bo_domain domain) argument [all...] |
/external/mesa3d/src/glx/ |
H A D | glxclient.h | 178 GLuint alignment; member in struct:__GLXpixelStoreModeRec
|
/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/chromium_org/ash/wm/dock/ |
H A D | docked_window_layout_manager.cc | 72 void SetBackgroundBounds(const gfx::Rect bounds, DockedAlignment alignment) { argument 75 alignment_ = alignment; 474 // If there are no other docked windows clear alignment when a docked window 529 // If this is the first window that got docked by a move update alignment. 580 // If such exists the current alignment is returned - even if some of the 623 const DockedAlignment alignment = CalculateAlignment(); local 625 alignment != DOCKED_ALIGNMENT_NONE && 626 alignment != desired_alignment) { 632 shelf_alignment = shelf_->alignment(); 652 // When screen resizes update the insets even when dock width or alignment 1189 DockedAlignment alignment = alignment_; local [all...] |