/third_party/jerryscript/jerry-core/jmem/ |
D | jmem-heap.c | 478 const size_t aligned_size = (size + JMEM_ALIGNMENT - 1) / JMEM_ALIGNMENT * JMEM_ALIGNMENT; in jmem_heap_free_block_internal() local 482 jmem_heap_insert_block (block_p, prev_p, aligned_size); in jmem_heap_free_block_internal() 484 JERRY_CONTEXT (jmem_heap_allocated_size) -= aligned_size; in jmem_heap_free_block_internal() 794 const size_t aligned_size = (size + JMEM_ALIGNMENT - 1) / JMEM_ALIGNMENT * JMEM_ALIGNMENT; in jmem_heap_stat_alloc() local 795 const size_t waste_bytes = aligned_size - size; in jmem_heap_stat_alloc() 799 heap_stats->allocated_bytes += aligned_size; in jmem_heap_stat_alloc() 819 const size_t aligned_size = (size + JMEM_ALIGNMENT - 1) / JMEM_ALIGNMENT * JMEM_ALIGNMENT; in jmem_heap_stat_free() local 820 const size_t waste_bytes = aligned_size - size; in jmem_heap_stat_free() 824 heap_stats->allocated_bytes -= aligned_size; in jmem_heap_stat_free()
|
/third_party/libffi/src/microblaze/ |
D | ffi.c | 77 int aligned_size = WORD_FFI_ALIGN(size); in ffi_prep_args() local 80 stack_args_p += aligned_size; in ffi_prep_args() 133 memcpy(addr, value, aligned_size); in ffi_prep_args()
|
/third_party/flutter/skia/src/core/ |
D | SkMask.cpp | 43 size_t aligned_size = SkSafeMath::Align4(size); in AllocImage() local 48 return static_cast<uint8_t*>(sk_malloc_flags(aligned_size, flags)); in AllocImage()
|
/third_party/skia/src/core/ |
D | SkMask.cpp | 43 size_t aligned_size = SkSafeMath::Align4(size); in AllocImage() local 48 return static_cast<uint8_t*>(sk_malloc_flags(aligned_size, flags)); in AllocImage()
|
/third_party/mesa3d/src/broadcom/compiler/ |
D | v3d_nir_lower_robust_buffer_access.c | 97 nir_ssa_def *aligned_size = in lower_shared() local 99 nir_ssa_def *offset = nir_umin(b, instr->src[0].ssa, aligned_size); in lower_shared()
|
/third_party/mesa3d/src/virtio/vulkan/ |
D | vn_feedback.c | 196 const uint32_t aligned_size = align(size, 4); in vn_feedback_pool_alloc_locked() local 198 if (unlikely(aligned_size > pool->size - pool->used)) { in vn_feedback_pool_alloc_locked() 203 assert(aligned_size <= pool->size - pool->used); in vn_feedback_pool_alloc_locked() 207 pool->used += aligned_size; in vn_feedback_pool_alloc_locked()
|
/third_party/mesa3d/src/gallium/drivers/radeonsi/ |
D | si_compute_blit.c | 440 uint64_t aligned_size = size & ~3ull; in si_clear_buffer() local 441 if (aligned_size >= 4) { in si_clear_buffer() 461 si_compute_do_clear_or_copy(sctx, dst, offset, NULL, 0, aligned_size, clear_value, in si_clear_buffer() 465 si_cp_dma_clear_buffer(sctx, &sctx->gfx_cs, dst, offset, aligned_size, *clear_value, in si_clear_buffer() 469 offset += aligned_size; in si_clear_buffer() 470 size -= aligned_size; in si_clear_buffer()
|
/third_party/mesa3d/src/gallium/drivers/r600/ |
D | compute_memory_pool.c | 640 int64_t aligned_size = pool->size_in_dw; in compute_memory_transfer() local 655 &(struct pipe_box) { .width = aligned_size * 4, in compute_memory_transfer() 663 &(struct pipe_box) { .width = aligned_size * 4, in compute_memory_transfer()
|
/third_party/mesa3d/src/intel/isl/ |
D | isl_surface_state.c | 813 uint64_t aligned_size = isl_align(buffer_size, 4); in isl_genX() local 814 buffer_size = aligned_size + (aligned_size - buffer_size); in isl_genX()
|
/third_party/f2fs-tools/tools/f2fs_io/ |
D | f2fs_io.c | 724 u64 idx, end_idx, aligned_size; in do_randread() local 756 aligned_size = (u64)stbuf.st_size & ~((u64)(4096 - 1)); in do_randread() 757 if (aligned_size < buf_size) in do_randread() 759 end_idx = (u64)(aligned_size - buf_size) / (u64)4096 + 1; in do_randread()
|
/third_party/mesa3d/src/gallium/winsys/amdgpu/drm/ |
D | amdgpu_bo.c | 1673 uint64_t aligned_size = align64(size, ws->info.gart_page_size); in amdgpu_bo_from_ptr() local 1680 aligned_size, &buf_handle)) in amdgpu_bo_from_ptr() 1684 aligned_size, in amdgpu_bo_from_ptr() 1685 amdgpu_get_optimal_alignment(ws, aligned_size, in amdgpu_bo_from_ptr() 1690 if (amdgpu_bo_va_op(buf_handle, 0, aligned_size, va, 0, AMDGPU_VA_OP_MAP)) in amdgpu_bo_from_ptr() 1707 ws->allocated_gtt += aligned_size; in amdgpu_bo_from_ptr()
|
/third_party/mesa3d/src/microsoft/clc/ |
D | compute_test.cpp | 449 unsigned aligned_size = align(size, 256); in add_cbv_resource() local 457 res = create_sized_buffer_with_data(aligned_size, data, size); in add_cbv_resource() 459 create_cbv(res, aligned_size, handle); in add_cbv_resource()
|
/third_party/skia/third_party/externals/freetype/src/sfnt/ |
D | sfwoff2.c | 287 FT_ULong aligned_size = size & ~3UL; in compute_ULong_sum() local 292 for ( i = 0; i < aligned_size; i += 4 ) in compute_ULong_sum() 299 if ( size != aligned_size ) in compute_ULong_sum() 302 for ( i = aligned_size ; i < size; ++i ) in compute_ULong_sum()
|
/third_party/freetype/src/sfnt/ |
D | sfwoff2.c | 288 FT_ULong aligned_size = size & ~3UL; in compute_ULong_sum() local 293 for ( i = 0; i < aligned_size; i += 4 ) in compute_ULong_sum() 300 if ( size != aligned_size ) in compute_ULong_sum() 303 for ( i = aligned_size ; i < size; ++i ) in compute_ULong_sum()
|
/third_party/tzdata/ |
D | zic.c | 434 size_t aligned_size = size + alignment - 1; in align_to() local 435 aligned_size -= aligned_size % alignment; in align_to() 436 if (aligned_size < size) in align_to() 438 return aligned_size; in align_to()
|
/third_party/mesa3d/src/amd/vulkan/ |
D | si_cmd_buffer.c | 1635 uint64_t aligned_size = in si_cs_cp_dma_prefetch() local 1639 command |= S_415_BYTE_COUNT_GFX9(aligned_size) | in si_cs_cp_dma_prefetch() 1643 command |= S_415_BYTE_COUNT_GFX6(aligned_size) | in si_cs_cp_dma_prefetch()
|
/third_party/mesa3d/src/broadcom/vulkan/ |
D | v3dv_device.c | 2608 const VkDeviceSize aligned_size = align64(buffer->size, buffer->alignment); in v3dv_CreateBuffer() local 2609 if (aligned_size > UINT32_MAX || aligned_size < buffer->size) { in v3dv_CreateBuffer()
|
/third_party/mesa3d/src/panfrost/lib/ |
D | pan_indirect_draw.c | 690 nir_ssa_def *aligned_size = in update_varying_buf() local 702 get_address(b, var_mem_ptr, aligned_size), 3); in update_varying_buf()
|