Home
last modified time | relevance | path

Searched refs:RoundUp (Results 1 – 25 of 29) sorted by relevance

12

/third_party/skia/third_party/externals/tint/src/utils/
Dmath_test.cc23 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 …]
Dmath.h30 inline T RoundUp(T alignment, T value) { in RoundUp() function
/third_party/skia/third_party/externals/dawn/src/tests/unittests/
DMathTests.cpp264 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/
Dcreate_thread_identity.cc70 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/
Dcreate_thread_identity.cc70 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/
Dcord_rep_flat.h56 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/
Dfixed-dtoa.cc189 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/
Dfloat_conversion.cc315 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/
Dfloat_conversion.cc334 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/
DMVETailPredication.cpp362 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/
Dlow_level_alloc.cc444 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/
Dlow_level_alloc.cc444 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/
DMath.h32 uint64_t RoundUp(uint64_t n, uint64_t m);
DMath.cpp155 uint64_t RoundUp(uint64_t n, uint64_t m) { in RoundUp() function
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
DStagingDescriptorAllocatorD3D12.cpp30 mHeapSize(RoundUp(heapSize, descriptorCount)), in StagingDescriptorAllocator()
/third_party/node/src/
Dutil.h720 constexpr T RoundUp(T a, T b) {
728 RoundUp(reinterpret_cast<uintptr_t>(ptr), alignment));
Dspawn_sync.cc1057 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/
Dintrinsic_table.cc695 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/
DAPInt.cpp2937 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/
Dresolver.cc2074 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()
Dresolver_validation.cc252 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/
Dgenerator_impl.cc536 offset = utils::RoundUp(mem_sem->Align(), offset); in EmitStructType()
/third_party/skia/third_party/externals/tint/src/inspector/
Dinspector.cc565 total_size += utils::RoundUp(align, size); in GetWorkgroupStorageSize()
/third_party/abseil-cpp/absl/strings/
Dcord.cc113 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/
DXmmArith.cpp2243 TestRoundsdXmmXmm(Dst, Src, RoundUp, 5.49, 6); \ in TEST_F()

12