Searched refs:kPrecision (Results 1 - 14 of 14) sorted by relevance
/third_party/skia/tests/ |
H A D | WangsFormulaTest.cpp | 15 constexpr static float kPrecision = 4; // 1/4 pixel max error. member 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, pt in DEF_TEST() [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/random/internal/ |
H A D | iostream_state_saver_test.cc | 37 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() 154 "stream_precision_helper<float>::kPrecision should be at least 9"); in TEST() 212 stream_precision_helper<double>::kPrecision >= 17, in TEST() 213 "stream_precision_helper<double>::kPrecision should be at least 17"); in TEST() 286 stream_precision_helper<long double>::kPrecision >= 36, in TEST() 287 "stream_precision_helper<long double>::kPrecision should be at least 36"); in TEST()
|
H A D | iostream_state_saver.h | 103 // stream_precision_helper<type>::kPrecision returns the base 10 precision 109 static constexpr int kPrecision = member 117 static constexpr int kPrecision = 9; member 121 static constexpr int kPrecision = 17; member 125 static constexpr int kPrecision = 36; // assuming fp128 member
|
/third_party/json/include/nlohmann/detail/conversions/ |
H A D | to_chars.hpp | 59 static constexpr int kPrecision = 64; // = q member 84 static_assert(kPrecision == 64, "internal error"); 204 constexpr int kPrecision = std::numeric_limits<FloatType>::digits; // = p (includes the hidden bit) 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/ |
H A D | bernoulli_distribution.h | 112 os.precision(random_internal::stream_precision_helper<double>::kPrecision); in operator <<()
|
H A D | uniform_real_distribution.h | 179 os.precision(random_internal::stream_precision_helper<RealType>::kPrecision); in operator <<()
|
H A D | exponential_distribution.h | 141 os.precision(random_internal::stream_precision_helper<RealType>::kPrecision); in operator <<()
|
H A D | gaussian_distribution.h | 186 os.precision(random_internal::stream_precision_helper<RealType>::kPrecision); in operator <<()
|
H A D | discrete_distribution.h | 213 os.precision(random_internal::stream_precision_helper<double>::kPrecision); in operator <<()
|
H A D | poisson_distribution.h | 236 os.precision(random_internal::stream_precision_helper<double>::kPrecision); in operator <<()
|
H A D | zipf_distribution.h | 242 os.precision(random_internal::stream_precision_helper<double>::kPrecision); in operator <<()
|
H A D | beta_distribution.h | 401 os.precision(random_internal::stream_precision_helper<RealType>::kPrecision); in operator <<()
|
/third_party/json/tests/abi/include/nlohmann/ |
H A D | json_v3_10_5.hpp | 14994 static constexpr int kPrecision = 64; // = q 15019 static_assert(kPrecision == 64, "internal error"); 15139 constexpr int kPrecision = std::numeric_limits<FloatType>::digits; // = p (includes the hidden bit) 15140 constexpr int kBias = std::numeric_limits<FloatType>::max_exponent - 1 + (kPrecision - 1); 15142 constexpr std::uint64_t kHiddenBit = std::uint64_t{1} << (kPrecision - 1); // = 2^(p-1) 15144 using bits_type = typename std::conditional<kPrecision == 24, std::uint32_t, std::uint64_t >::type; 15147 const std::uint64_t E = bits >> (kPrecision - 1); 15825 static_assert(diyfp::kPrecision >= std::numeric_limits<FloatType>::digits + 3,
|
/third_party/json/single_include/nlohmann/ |
H A D | json.hpp | 16842 static constexpr int kPrecision = 64; // = q 16867 static_assert(kPrecision == 64, "internal error"); 16987 constexpr int kPrecision = std::numeric_limits<FloatType>::digits; // = p (includes the hidden bit) 16988 constexpr int kBias = std::numeric_limits<FloatType>::max_exponent - 1 + (kPrecision - 1); 16990 constexpr std::uint64_t kHiddenBit = std::uint64_t{1} << (kPrecision - 1); // = 2^(p-1) 16992 using bits_type = typename std::conditional<kPrecision == 24, std::uint32_t, std::uint64_t >::type; 16995 const std::uint64_t E = bits >> (kPrecision - 1); 17673 static_assert(diyfp::kPrecision >= std::numeric_limits<FloatType>::digits + 3,
|
Completed in 51 milliseconds