Home | History | Annotate | Download | only in src

Lines Matching defs:limits

21 #include <limits>
335 typedef numeric_limits<double> limits;
420 if (value == (ULL(1) << (limits::digits - 1))) { /* carry created normal number */
464 if (bexp > limits::max_exponent) { /* overflow */
465 return limits::infinity();
468 value &= ~(ULL(1) << (limits::digits - 1)); /* hide hidden bit */
485 typedef numeric_limits<D> limits;
529 if ( bexp >= limits::min_exponent ) { /* not zero or denorm */
530 if ( limits::digits < 64 ) {
532 uint64_t rest = vv.i64 & ((~ULL(0) / ULL(2)) >> (limits::digits - 1));
548 if ( (vv.i64 >> (limits::digits < 64 ? limits::digits : 0)) != 0 ) { /* carry all the way across */
555 vv.i64 &= ~(ULL(1) << (limits::digits - 1)); /* hide hidden bit */
571 if (bexp > limits::max_exponent) { /* overflow */
572 return limits::infinity();
589 if (bexp < -limits::digits) { /* guaranteed underflow */
621 if (vv.i64 == (ULL(1) << (limits::digits - 1))) { /* carry created normal number */
646 typedef numeric_limits<double> limits;
647 const int max_digits = limits::digits10 + 2;
723 if ((exp + n - 1) < limits::min_exponent10) {
726 else if ((exp + n - 1) > limits::max_exponent10) {
727 x = limits::infinity();
751 typedef numeric_limits<D> limits;
752 const int max_digits = limits::digits10; /* + 2 17 */;
827 if ((exp + n - 1) < limits::min_exponent10) {
829 } else if ((exp + n - 1) > limits::max_exponent10 ) {
831 x = limits::infinity();