Home
last modified time | relevance | path

Searched refs:digits (Results 1 – 25 of 43) sorted by relevance

12

/ndk/tests/device/test-stlport/unit/
Dcomplete_digits.h8 complete_digits(std::string &digits) in complete_digits() argument
10 complete_digits(string &digits) in complete_digits()
13 while (digits.size() < 2) in complete_digits()
15 digits.insert(digits.begin(), '0'); in complete_digits()
Dnum_facets_test.cpp59 string digits = "7"; in _num_put_get() local
60 complete_digits(digits); in _num_put_get()
61 ref += digits; in _num_put_get()
69 digits = "9"; in _num_put_get()
70 complete_digits(digits); in _num_put_get()
71 CPPUNIT_ASSERT( fostr.str() == string("1e+") + digits ); in _num_put_get()
86 digits = "7"; in _num_put_get()
87 complete_digits(digits); in _num_put_get()
88 CPPUNIT_ASSERT( fostr.str() == string("1e+") + digits ); in _num_put_get()
Dnum_put_get_test.cpp400 string output, digits; in num_put_float() local
407 digits = "17"; in num_put_float()
408 complete_digits(digits); in num_put_float()
409 CPPUNIT_CHECK(output == string("1.23457e+") + digits ); in num_put_float()
463 digits = "1"; in num_put_float()
464 complete_digits(digits); in num_put_float()
465 CPPUNIT_CHECK(output == string("1.23456780e-") + digits ); in num_put_float()
/ndk/tests/device/test-gnustl-full/unit/
Dcomplete_digits.h8 complete_digits(std::string &digits) in complete_digits() argument
10 complete_digits(string &digits) in complete_digits()
13 while (digits.size() < 2) in complete_digits()
15 digits.insert(digits.begin(), '0'); in complete_digits()
Dnum_facets_test.cpp59 string digits = "7"; in _num_put_get() local
60 complete_digits(digits); in _num_put_get()
61 ref += digits; in _num_put_get()
69 digits = "9"; in _num_put_get()
70 complete_digits(digits); in _num_put_get()
71 CPPUNIT_ASSERT( fostr.str() == string("1e+") + digits ); in _num_put_get()
86 digits = "7"; in _num_put_get()
87 complete_digits(digits); in _num_put_get()
88 CPPUNIT_ASSERT( fostr.str() == string("1e+") + digits ); in _num_put_get()
Dnum_put_get_test.cpp400 string output, digits; in num_put_float() local
407 digits = "17"; in num_put_float()
408 complete_digits(digits); in num_put_float()
409 CPPUNIT_CHECK(output == string("1.23457e+") + digits ); in num_put_float()
463 digits = "1"; in num_put_float()
464 complete_digits(digits); in num_put_float()
465 CPPUNIT_CHECK(output == string("1.23456780e-") + digits ); in num_put_float()
/ndk/sources/cxx-stl/stlport/src/
Dnum_get.cpp78 bool _STLP_CALL __get_fdigit(wchar_t& c, const wchar_t* digits) { in __get_fdigit() argument
79 const wchar_t* p = find(digits, digits + 10, c); in __get_fdigit()
80 if (p != digits + 10) { in __get_fdigit()
81 c = (char)('0' + (p - digits)); in __get_fdigit()
89 const wchar_t * digits) { in __get_fdigit_or_sep() argument
95 return __get_fdigit(c, digits); in __get_fdigit_or_sep()
Dnum_get_float.cpp86 wchar_t* digits) { in _Initialize_get_float() argument
92 ct.widen(ndigits + 0, ndigits + 10, digits); in _Initialize_get_float()
420 if (value == (ULL(1) << (limits::digits - 1))) { /* carry created normal number */ in _Stl_atod()
468 value &= ~(ULL(1) << (limits::digits - 1)); /* hide hidden bit */ in _Stl_atod()
530 if ( limits::digits < 64 ) { in _Stl_atodT()
532 uint64_t rest = vv.i64 & ((~ULL(0) / ULL(2)) >> (limits::digits - 1)); in _Stl_atodT()
548 …if ( (vv.i64 >> (limits::digits < 64 ? limits::digits : 0)) != 0 ) { /* carry all the way across */ in _Stl_atodT()
555 vv.i64 &= ~(ULL(1) << (limits::digits - 1)); /* hide hidden bit */ in _Stl_atodT()
589 if (bexp < -limits::digits) { /* guaranteed underflow */ in _Stl_atodT()
621 if (vv.i64 == (ULL(1) << (limits::digits - 1))) { /* carry created normal number */ in _Stl_atodT()
[all …]
/ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/detail/
Dlcast_precision.hpp63 limits::radix == 2 && limits::digits > 0
82 2UL + limits::digits * 30103UL / 100000UL
86 (limits::digits + 0UL < ULONG_MAX / 30103UL &&
123 limits::radix == 2 && limits::digits > 0; in lcast_get_precision()
133 unsigned long const digits = limits::digits; in lcast_get_precision()
134 unsigned long const precision = 2UL + digits * 30103UL / 100000UL; in lcast_get_precision()
138 digits < ULONG_MAX / 30103UL && in lcast_get_precision()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/language.support/support.limits/limits/numeric.limits.members/
Ddigits.pass.cpp21 static_assert(std::numeric_limits<T>::digits == expected, "digits test 1"); in test()
22 static_assert(std::numeric_limits<const T>::digits == expected, "digits test 2"); in test()
23 static_assert(std::numeric_limits<volatile T>::digits == expected, "digits test 3"); in test()
24 static_assert(std::numeric_limits<const volatile T>::digits == expected, "digits test 4"); in test()
Dconst_data_members.pass.cpp45 test(std::numeric_limits<type>::digits); \
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/rand/rand.util/rand.util.canonical/
Dgenerate_canonical.pass.cpp38 F f = std::generate_canonical<F, std::numeric_limits<F>::digits - 1>(r); in main()
45 F f = std::generate_canonical<F, std::numeric_limits<F>::digits>(r); in main()
52 F f = std::generate_canonical<F, std::numeric_limits<F>::digits + 1>(r); in main()
74 F f = std::generate_canonical<F, std::numeric_limits<F>::digits - 1>(r); in main()
84 F f = std::generate_canonical<F, std::numeric_limits<F>::digits>(r); in main()
94 F f = std::generate_canonical<F, std::numeric_limits<F>::digits + 1>(r); in main()
/ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/numeric/conversion/detail/
Dis_subranged.hpp62 typedef mpl::int_< ::std::numeric_limits<S>::digits > S_digits ;
63 typedef mpl::int_< ::std::numeric_limits<T>::digits > T_digits ;
81 typedef mpl::int_< ::std::numeric_limits<S>::digits > S_digits ;
82 typedef mpl::int_< ::std::numeric_limits<T>::digits > T_digits ;
108 typedef mpl::int_< ::std::numeric_limits<S>::digits > S_mantisa ;
109 typedef mpl::int_< ::std::numeric_limits<T>::digits > T_mantisa ;
/ndk/sources/cxx-stl/stlport/stlport/stl/
D_limits.h65 _STLP_STATIC_CONSTANT(int, digits = 0);
124 …_STLP_STATIC_CONSTANT(int, digits = (__idigits < 0) ? ((int)((sizeof(_Int) * (CHAR_BIT))) - ((__im…
125 _STLP_STATIC_CONSTANT(int, digits10 = (digits * 301UL) / 1000);
146 _STLP_STATIC_CONSTANT(int, digits = __Digits);
303 _STLP_STATIC_CONSTANT(int, digits = ((int)((sizeof(_STLP_LONG_LONG) * (CHAR_BIT))) - 1));
304 _STLP_STATIC_CONSTANT(int, digits10 = (digits * 301UL) / 1000);
322 _STLP_STATIC_CONSTANT(int, digits = ((int)((sizeof(unsigned _STLP_LONG_LONG) * (CHAR_BIT)))));
323 _STLP_STATIC_CONSTANT(int, digits10 = (digits * 301UL) / 1000);
D_limits.c41 __declare_numeric_base_member(int, digits);
70 __declare_integer_limits_member(int, digits);
84 _STLP_TEMPLATE_NULL const int numeric_limits<__integer>::digits; \
116 __declare_float_limits_member(int, digits);
/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/
Dlimits29 static constexpr int digits = 0;
151 static _LIBCPP_CONSTEXPR const int digits = 0;
185 template <class _Tp, int digits, bool is_signed>
188 static _LIBCPP_CONSTEXPR const _Tp value = _Tp(_Tp(1) << digits);
191 template <class _Tp, int digits>
192 struct __libcpp_compute_min<_Tp, digits, false>
206 …static _LIBCPP_CONSTEXPR const int digits = static_cast<int>(sizeof(type) * __CHAR_BIT__ - is_sig…
207 static _LIBCPP_CONSTEXPR const int digits10 = digits * 3 / 10;
209 … static _LIBCPP_CONSTEXPR const type __min = __libcpp_compute_min<type, digits, is_signed>::value;
258 static _LIBCPP_CONSTEXPR const int digits = 1;
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/
Dnanoseconds.pass.cpp25 static_assert(std::numeric_limits<Rep>::digits >= 63, ""); in main()
Dmicroseconds.pass.cpp25 static_assert(std::numeric_limits<Rep>::digits >= 54, ""); in main()
Dhours.pass.cpp25 static_assert(std::numeric_limits<Rep>::digits >= 22, ""); in main()
Dminutes.pass.cpp25 static_assert(std::numeric_limits<Rep>::digits >= 28, ""); in main()
Dmilliseconds.pass.cpp25 static_assert(std::numeric_limits<Rep>::digits >= 44, ""); in main()
Dseconds.pass.cpp25 static_assert(std::numeric_limits<Rep>::digits >= 34, ""); in main()
/ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/
Dlimits.hpp56 BOOST_STATIC_CONSTANT(int, digits = sizeof(BOOST_LLT) * CHAR_BIT -1);
109 BOOST_STATIC_CONSTANT(int, digits = sizeof(BOOST_LLT) * CHAR_BIT);
/ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/math/policies/
Dpolicy.hpp36 int digits(BOOST_MATH_EXPLICIT_TEMPLATE_TYPE(T));
751 digits2< ::std::numeric_limits<Real>::digits>,
779 …(::std::numeric_limits<Real>::is_specialized == 0) || (::std::numeric_limits<Real>::digits == 0)));
783 …((::std::numeric_limits<Real>::is_specialized == 0) || (::std::numeric_limits<Real>::digits == 0)),
787 ((::std::numeric_limits<Real>::digits <= precision_type::value)
790 digits2< ::std::numeric_limits<Real>::digits>,
797 typedef mpl::int_< ::std::numeric_limits<Real>::digits> digits_t;
806 digits2< ::std::numeric_limits<Real>::digits>,
833 return tools::digits<T>(); in digits_imp()
839 inline int digits(BOOST_MATH_EXPLICIT_TEMPLATE_TYPE(T)) in digits() function
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/language.support/support.limits/limits/numeric.limits/
Ddefault.pass.cpp33 static_assert(std::numeric_limits<A>::digits == 0, in main()

12