Home
last modified time | relevance | path

Searched refs:kPrecision (Results 1 – 15 of 15) sorted by relevance

/third_party/skia/tests/
DWangsFormulaTest.cpp15 constexpr static float kPrecision = 4; // 1/4 pixel max error. variable
204 constexpr static float k = (3 * 2) / (8 * (1.f/kPrecision)); in DEF_TEST()
207 float referenceValue = wangs_formula_cubic_reference_impl(kPrecision, pts); in DEF_TEST()
209 float c = wangs_formula::cubic(kPrecision, pts); in DEF_TEST()
211 REPORTER_ASSERT(r, wangs_formula::cubic_log2(kPrecision, pts) == level); in DEF_TEST()
213 referenceValue = wangs_formula_cubic_reference_impl(kPrecision, pts); in DEF_TEST()
215 c = wangs_formula::cubic(kPrecision, pts); in DEF_TEST()
217 REPORTER_ASSERT(r, wangs_formula::cubic_log2(kPrecision, pts) == level + 1); in DEF_TEST()
223 constexpr static float k = 2 / (8 * (1.f/kPrecision)); in DEF_TEST()
226 float referenceValue = wangs_formula_quadratic_reference_impl(kPrecision, pts); in DEF_TEST()
[all …]
/third_party/json/include/nlohmann/detail/conversions/
Dto_chars.hpp59 static constexpr int kPrecision = 64; // = q member
84 static_assert(kPrecision == 64, "internal error"); in mul()
204 …constexpr int kPrecision = std::numeric_limits<FloatType>::digits; // = p (includes the hidde… in compute_boundaries() local
205 …constexpr int kBias = std::numeric_limits<FloatType>::max_exponent - 1 + (kPrecision - 1… in compute_boundaries()
207 constexpr std::uint64_t kHiddenBit = std::uint64_t{1} << (kPrecision - 1); // = 2^(p-1) in compute_boundaries()
209 …using bits_type = typename std::conditional<kPrecision == 24, std::uint32_t, std::uint64_t >::type; in compute_boundaries()
212 const std::uint64_t E = bits >> (kPrecision - 1); in compute_boundaries()
890 static_assert(diyfp::kPrecision >= std::numeric_limits<FloatType>::digits + 3, in grisu2()
/third_party/skia/third_party/externals/abseil-cpp/absl/random/internal/
Diostream_state_saver_test.cc37 ss.precision(stream_precision_helper<T>::kPrecision); in StreamRoundTrip()
61 ss.precision(stream_precision_helper<T>::kPrecision); in StreamRoundTrip()
153 stream_precision_helper<float>::kPrecision >= 9, in TEST()
212 stream_precision_helper<double>::kPrecision >= 17, in TEST()
286 stream_precision_helper<long double>::kPrecision >= 36, in TEST()
Diostream_state_saver.h109 static constexpr int kPrecision = member
117 static constexpr int kPrecision = 9;
121 static constexpr int kPrecision = 17;
125 static constexpr int kPrecision = 36; // assuming fp128
/third_party/skia/third_party/externals/abseil-cpp/absl/random/
Dbernoulli_distribution.h112 os.precision(random_internal::stream_precision_helper<double>::kPrecision);
Dexponential_distribution.h141 os.precision(random_internal::stream_precision_helper<RealType>::kPrecision);
Duniform_real_distribution.h179 os.precision(random_internal::stream_precision_helper<RealType>::kPrecision);
Dpoisson_distribution.h236 os.precision(random_internal::stream_precision_helper<double>::kPrecision);
Ddiscrete_distribution.h213 os.precision(random_internal::stream_precision_helper<double>::kPrecision);
Dgaussian_distribution.h186 os.precision(random_internal::stream_precision_helper<RealType>::kPrecision);
Dzipf_distribution.h242 os.precision(random_internal::stream_precision_helper<double>::kPrecision);
Dbeta_distribution.h401 os.precision(random_internal::stream_precision_helper<RealType>::kPrecision);
/third_party/json/tests/abi/include/nlohmann/
Djson_v3_10_5.hpp14994 static constexpr int kPrecision = 64; // = q member
15019 static_assert(kPrecision == 64, "internal error"); in mul()
15139 …constexpr int kPrecision = std::numeric_limits<FloatType>::digits; // = p (includes the hidde… in compute_boundaries() local
15140 …constexpr int kBias = std::numeric_limits<FloatType>::max_exponent - 1 + (kPrecision - 1… in compute_boundaries()
15142 constexpr std::uint64_t kHiddenBit = std::uint64_t{1} << (kPrecision - 1); // = 2^(p-1) in compute_boundaries()
15144 …using bits_type = typename std::conditional<kPrecision == 24, std::uint32_t, std::uint64_t >::type; in compute_boundaries()
15147 const std::uint64_t E = bits >> (kPrecision - 1); in compute_boundaries()
15825 static_assert(diyfp::kPrecision >= std::numeric_limits<FloatType>::digits + 3, in grisu2()
/third_party/json/single_include/nlohmann/
Djson.hpp16842 static constexpr int kPrecision = 64; // = q member
16867 static_assert(kPrecision == 64, "internal error"); in mul()
16987 …constexpr int kPrecision = std::numeric_limits<FloatType>::digits; // = p (includes the hidde… in compute_boundaries() local
16988 …constexpr int kBias = std::numeric_limits<FloatType>::max_exponent - 1 + (kPrecision - 1… in compute_boundaries()
16990 constexpr std::uint64_t kHiddenBit = std::uint64_t{1} << (kPrecision - 1); // = 2^(p-1) in compute_boundaries()
16992 …using bits_type = typename std::conditional<kPrecision == 24, std::uint32_t, std::uint64_t >::type; in compute_boundaries()
16995 const std::uint64_t E = bits >> (kPrecision - 1); in compute_boundaries()
17673 static_assert(diyfp::kPrecision >= std::numeric_limits<FloatType>::digits + 3, in grisu2()
/third_party/mindspore/patches/
D0005-micro-for-ohos.patch17686 constexpr int kPrecision = 19;