/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/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/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/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/abseil-cpp/absl/strings/internal/str_format/ |
D | float_conversion.cc | 315 void RoundUp(char *p) { in RoundUp() function 327 if (*p % 2 == 1) RoundUp(p); in RoundToEven() 372 RoundUp(p - 1); in PrintFractionalDigitsFast() 417 RoundUp(p - 1); in PrintFractionalDigitsFast() 1022 void RoundUp(Buffer *buffer, int *exp) { in RoundUp() function 1140 RoundUp<FormatStyle::Precision>(out, exp_out); in RemoveExtraPrecision() 1232 RoundUp<mode>(out, exp_out); in FloatToBufferImpl()
|
/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()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/ |
D | MVETailPredication.cpp | 362 if (auto *RoundUp = dyn_cast<SCEVAddExpr>(S->getLHS())) { in ComputeElements() local 363 if (auto *Const = dyn_cast<SCEVConstant>(RoundUp->getOperand(0))) { in ComputeElements() 369 return RoundUp->getOperand(1); in ComputeElements()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/base/internal/ |
D | low_level_alloc.cc | 444 static inline uintptr_t RoundUp(uintptr_t addr, uintptr_t align) { in RoundUp() function 530 size_t req_rnd = RoundUp(CheckedAdd(request, sizeof (s->header)), in DoAllocWithArena() 550 size_t new_pages_size = RoundUp(req_rnd, arena->pagesize * 16); in DoAllocWithArena()
|
/third_party/abseil-cpp/absl/base/internal/ |
D | low_level_alloc.cc | 444 static inline uintptr_t RoundUp(uintptr_t addr, uintptr_t align) { in RoundUp() function 530 size_t req_rnd = RoundUp(CheckedAdd(request, sizeof (s->header)), in DoAllocWithArena() 550 size_t new_pages_size = RoundUp(req_rnd, arena->pagesize * 16); in DoAllocWithArena()
|
/third_party/skia/third_party/externals/dawn/src/common/ |
D | Math.h | 32 uint64_t RoundUp(uint64_t n, uint64_t m);
|
D | Math.cpp | 155 uint64_t RoundUp(uint64_t n, uint64_t m) { in RoundUp() function
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/ |
D | StagingDescriptorAllocatorD3D12.cpp | 30 mHeapSize(RoundUp(heapSize, descriptorCount)), in StagingDescriptorAllocator()
|
/third_party/node/src/ |
D | util.h | 720 constexpr T RoundUp(T a, T b) { 728 RoundUp(reinterpret_cast<uintptr_t>(ptr), alignment));
|
D | spawn_sync.cc | 1057 data_size = RoundUp(data_size, sizeof(void*)); in CopyJsStringArray() 1074 data_offset = RoundUp(data_offset, sizeof(void*)); in CopyJsStringArray()
|
/third_party/skia/third_party/externals/tint/src/ |
D | intrinsic_table.cc | 695 offset = utils::RoundUp(align, offset); in build_struct() 708 uint32_t size_with_padding = utils::RoundUp(max_align, offset); in build_struct()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
D | APInt.cpp | 2937 auto RoundUp = [] (const APInt &V, const APInt &A) -> APInt { in SolveQuadraticEquationWrap() local 2964 LowkR = RoundUp(LowkR, R); in SolveQuadraticEquationWrap() 2974 C -= -RoundUp(-C, R); // C = C - RoundDown(C, R) in SolveQuadraticEquationWrap()
|
/third_party/skia/third_party/externals/tint/src/resolver/ |
D | resolver.cc | 2074 uint64_t implicit_stride = utils::RoundUp<uint64_t>(el_align, el_size); in Array() 2282 offset = utils::RoundUp(align, offset); in Structure() 2304 struct_size = utils::RoundUp(struct_align, struct_size); in Structure()
|
D | resolver_validation.cc | 252 required_align = utils::RoundUp(16u, actual_align); in ValidateStorageClassLayout() 413 utils::RoundUp(required_align, arr->Stride())) + in ValidateStorageClassLayout()
|
/third_party/skia/third_party/externals/tint/src/writer/wgsl/ |
D | generator_impl.cc | 536 offset = utils::RoundUp(mem_sem->Align(), offset); in EmitStructType()
|
/third_party/skia/third_party/externals/tint/src/inspector/ |
D | inspector.cc | 565 total_size += utils::RoundUp(align, size); in GetWorkgroupStorageSize()
|
/third_party/abseil-cpp/absl/strings/ |
D | cord.cc | 113 static size_t RoundUp(size_t n, size_t m) { return DivUp(n, m) * m; } in RoundUp() function 118 return RoundUp(size, (size <= 1024) ? 8 : 32); in RoundUpForTag()
|
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/unittest/AssemblerX8664/ |
D | XmmArith.cpp | 2243 TestRoundsdXmmXmm(Dst, Src, RoundUp, 5.49, 6); \ in TEST_F()
|