Lines Matching refs:guess
431 // Returns true if the guess is the correct double.
432 // Returns false, when guess is either correct or the next-lower double.
434 double* guess) {
436 *guess = 0.0;
440 *guess = Double::Infinity();
444 *guess = 0.0;
448 if (DoubleStrtod(trimmed, exponent, guess) ||
449 DiyFpStrtod(trimmed, exponent, guess)) {
452 if (*guess == Double::Infinity()) {
485 double guess;
486 const bool is_correct = ComputeGuess(trimmed, exponent, &guess);
488 return guess;
490 DiyFp upper_boundary = Double(guess).UpperBoundary();
493 return guess;
495 return Double(guess).NextDouble();
496 } else if ((Double(guess).Significand() & 1) == 0) {
498 return guess;
500 return Double(guess).NextDouble();
570 // if they would round to the same float. If the guess is not correct we have
590 // If the guess doesn't lie near a single-precision boundary we can simply
600 // guess and next are the two possible candidates (in the same way that
601 // double_guess was the lower candidate for a double-precision guess).
602 float guess = f1;
605 if (guess == 0.0f) {
609 upper_boundary = Single(guess).UpperBoundary();
613 return guess;
616 } else if ((Single(guess).Significand() & 1) == 0) {
618 return guess;