/third_party/skia/third_party/externals/tint/src/utils/ |
D | math_test.cc | 23 TEST(MathTests, RoundUp) { in TEST() argument 24 EXPECT_EQ(RoundUp(1, 0), 0); in TEST() 25 EXPECT_EQ(RoundUp(1, 1), 1); in TEST() 26 EXPECT_EQ(RoundUp(1, 2), 2); in TEST() 28 EXPECT_EQ(RoundUp(1, 1), 1); in TEST() 29 EXPECT_EQ(RoundUp(2, 1), 2); in TEST() 30 EXPECT_EQ(RoundUp(3, 1), 3); in TEST() 31 EXPECT_EQ(RoundUp(4, 1), 4); in TEST() 33 EXPECT_EQ(RoundUp(1, 2), 2); in TEST() 34 EXPECT_EQ(RoundUp(2, 2), 2); in TEST() [all …]
|
D | math.h | 30 inline T RoundUp(T alignment, T value) { in RoundUp() function
|
/third_party/skia/third_party/externals/dawn/src/tests/unittests/ |
D | MathTests.cpp | 264 TEST(Math, RoundUp) { in TEST() argument 265 ASSERT_EQ(RoundUp(2, 2), 2u); in TEST() 266 ASSERT_EQ(RoundUp(2, 4), 4u); in TEST() 267 ASSERT_EQ(RoundUp(6, 2), 6u); in TEST() 268 ASSERT_EQ(RoundUp(8, 4), 8u); in TEST() 269 ASSERT_EQ(RoundUp(12, 6), 12u); in TEST() 271 ASSERT_EQ(RoundUp(3, 3), 3u); in TEST() 272 ASSERT_EQ(RoundUp(3, 5), 5u); in TEST() 273 ASSERT_EQ(RoundUp(5, 3), 6u); in TEST() 274 ASSERT_EQ(RoundUp(9, 5), 10u); in TEST() [all …]
|
/third_party/node/deps/v8/src/heap/ |
D | code-range.cc | 60 return RoundUp(preferred_region.begin(), alignment); in GetAddressHint() 62 return RoundUp(FUNCTION_ADDR(&FunctionInStaticBinaryForAddressHint), in GetAddressHint() 111 requested += RoundUp(reserved_area, MemoryChunk::kPageSize); in InitReservation() 130 params.base_bias_size = RoundUp(reserved_area, allocate_page_size); in InitReservation() 196 RoundUp(embedded_blob_code_size, kAllocatePageSize); in RemapEmbeddedBuiltins() 211 size_t code_size = RoundUp(embedded_blob_code_size, kCommitPageSize); in RemapEmbeddedBuiltins()
|
D | memory-chunk-layout.cc | 18 return ::RoundUp(MemoryChunk::kHeaderSize + Bitmap::kSize, in CodePageGuardStartOffset() 45 return RoundUp(MemoryChunk::kHeaderSize + Bitmap::kSize, kDoubleSize); in ObjectStartOffsetInDataPage()
|
D | memory-allocator.cc | 39 capacity_(RoundUp(capacity, Page::kPageSize)), in MemoryAllocator() 267 const size_t aligned_area_size = ::RoundUp(area_size, GetCommitPageSize()); in AllocateAlignedMemory() 276 ::RoundUp(MemoryChunkLayout::ObjectStartOffsetInDataPage() + area_size, in AllocateAlignedMemory() 318 return ::RoundUp(MemoryChunkLayout::ObjectStartOffsetInCodePage() + in ComputeChunkSize() 335 return ::RoundUp(MemoryChunkLayout::ObjectStartOffsetInDataPage() + area_size, in ComputeChunkSize() 478 RoundUp(chunk->size(), allocator->AllocatePageSize())); in FreeReadOnlyPage() 647 Address discardable_start = RoundUp(addr + FreeSpace::kSize, page_size); in ComputeDiscardMemoryArea()
|
/third_party/node/deps/v8/src/heap/cppgc/ |
D | virtual-memory.cc | 20 start_ = page_allocator->AllocatePages(hint, RoundUp(size, page_size), in VirtualMemory() 21 RoundUp(alignment, page_size), in VirtualMemory() 24 size_ = RoundUp(size, page_size); in VirtualMemory()
|
D | object-allocator.h | 86 RoundUp<kAllocationGranularity>(size + sizeof(HeapObjectHeader)); in AllocateObject() 97 RoundUp<kAllocationGranularity>(size + sizeof(HeapObjectHeader)); in AllocateObject() 108 RoundUp<kAllocationGranularity>(size + sizeof(HeapObjectHeader)); in AllocateObject() 119 RoundUp<kAllocationGranularity>(size + sizeof(HeapObjectHeader)); in AllocateObject()
|
D | caged-heap.cc | 57 RoundUp(sizeof(CagedHeapLocalData), platform_allocator.CommitPageSize()), in CagedHeap() 66 RoundUp(reinterpret_cast<CagedAddress>(reserved_area_.address()) + in CagedHeap()
|
D | gc-info-table.cc | 76 return RoundUp(GCInfoTable::kMaxIndex * kEntrySize, in MaxTableSize() 85 RoundUp(memory_wanted, page_allocator_->AllocatePageSize()) / kEntrySize; in InitialTableLimit()
|
D | caged-heap-local-data.cc | 34 const uintptr_t begin = RoundUp(reinterpret_cast<uintptr_t>(table_.data()), in Reset()
|
/third_party/node/deps/v8/src/utils/ |
D | allocation.cc | 254 alignment = RoundUp(alignment, page_size); in VirtualMemory() 259 page_allocator_, hint, RoundUp(size, page_size), alignment, permissions)); in VirtualMemory() 311 RoundUp(region.size(), page_allocator->AllocatePageSize())); in Free() 324 RoundUp(region.size(), page_allocator->AllocatePageSize())); in FreeReadOnly() 346 return RoundUp(reservation_start + params.base_bias_size, in VirtualMemoryCageStart() 378 RoundUp(params.base_alignment, allocate_page_size)); in InitReservation() 393 RoundUp(params.base_alignment, allocate_page_size)) - in InitReservation() 394 RoundUp(params.base_bias_size, allocate_page_size); in InitReservation() 456 const Address allocatable_base = RoundUp(base_, params.page_size); in InitReservation()
|
/third_party/node/deps/v8/src/init/ |
D | isolate-allocator.cc | 26 return RoundUp(Isolate::isolate_root_bias(), in GetIsolateRootBiasPageSize() 51 RoundUp(size_t{1} << kPageSizeBits, page_allocator->AllocatePageSize()); in PtrComprCageReservationParams() 185 RoundUp(isolate_end, page_size) - reserved_region_address; in CommitPagesForIsolate() 198 RoundUp(isolate_end, commit_page_size) - committed_region_address; in CommitPagesForIsolate()
|
/third_party/node/deps/v8/src/heap/base/ |
D | active-system-pages.cc | 19 DCHECK_LE(RoundUp(user_page_size, page_size) >> page_size_bits, in Init() 38 const uintptr_t end_page_bit = RoundUp(end, page_size) >> page_size_bits; in Add()
|
/third_party/node/deps/v8/src/zone/ |
D | zone.cc | 49 size = RoundUp(size, kAlignmentInBytes); in AsanNew() 92 position_ = RoundUp(keep->start(), kAlignmentInBytes); in Reset() 181 Address result = RoundUp(segment->start(), kAlignmentInBytes); in NewExpand()
|
D | zone.h | 60 size = RoundUp(size, kAlignmentInBytes); in Allocate() 86 size = RoundUp(size, kAlignmentInBytes); in Delete()
|
/third_party/node/deps/v8/src/base/ |
D | bounded-page-allocator.cc | 105 size_t region_size = RoundUp(size, allocate_page_size_); in ReserveForSharedMemoryMapping() 148 size_t allocated_size = RoundUp(size, allocate_page_size_); in ReleasePages() 149 size_t new_allocated_size = RoundUp(new_size, allocate_page_size_); in ReleasePages()
|
/third_party/node/deps/v8/src/execution/arm64/ |
D | frame-constants-arm64.h | 88 RoundUp<16>(TypedFrameConstants::kFixedFrameSizeFromFp) + 118 -RoundUp<16>(TypedFrameConstants::kFixedFrameSizeFromFp) -
|
D | frame-constants-arm64.cc | 34 int rounded_slot_count = RoundUp(slot_count, 2); in PaddingSlotCount()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/synchronization/internal/ |
D | create_thread_identity.cc | 70 static intptr_t RoundUp(intptr_t addr, intptr_t align) { in RoundUp() function 117 RoundUp(reinterpret_cast<intptr_t>(allocation), in NewThreadIdentity()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/ |
D | cord_rep_flat.h | 56 constexpr size_t RoundUp(size_t n, size_t m) { return DivUp(n, m) * m; } in RoundUp() function 61 return RoundUp(size, (size <= 1024) ? 8 : 32); in RoundUpForTag()
|
/third_party/node/deps/v8/src/wasm/ |
D | struct-types.h | 78 offset = RoundUp(offset, field_size); in InitializeOffsets() 82 offset = RoundUp(offset, kTaggedSize); in InitializeOffsets()
|
/third_party/icu/vendor/double-conversion/upstream/double-conversion/ |
D | fixed-dtoa.cc | 189 static void RoundUp(Vector<char> buffer, int* length, int* decimal_point) { in RoundUp() function 264 RoundUp(buffer, length, decimal_point); in FillFractionals() 284 RoundUp(buffer, length, decimal_point); in FillFractionals()
|
/third_party/node/deps/v8/src/snapshot/embedded/ |
D | embedded-data.cc | 133 const uint32_t allocation_code_size = RoundUp(d.code_size(), alignment); in CreateOffHeapOffHeapInstructionStream() 141 const uint32_t allocation_data_size = RoundUp(d.data_size(), alignment); in CreateOffHeapOffHeapInstructionStream() 180 FreePages(page_allocator, code, RoundUp(code_size, page_size)); in FreeOffHeapOffHeapInstructionStream() 181 FreePages(page_allocator, data, RoundUp(data_size, page_size)); in FreeOffHeapOffHeapInstructionStream()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/str_format/ |
D | float_conversion.cc | 334 void RoundUp(char *p) { in RoundUp() function 346 if (*p % 2 == 1) RoundUp(p); in RoundToEven() 391 RoundUp(p - 1); in PrintFractionalDigitsFast() 436 RoundUp(p - 1); in PrintFractionalDigitsFast() 1041 void RoundUp(Buffer *buffer, int *exp) { in RoundUp() function 1159 RoundUp<FormatStyle::Precision>(out, exp_out); in RemoveExtraPrecision() 1251 RoundUp<mode>(out, exp_out); in FloatToBufferImpl()
|