Lines Matching refs:exponent
181 unsigned long exponent, int_bit; in floatformat_i387_ext_is_valid() local
184 exponent = get_field (ufrom, fmt->byteorder, fmt->totalsize, in floatformat_i387_ext_is_valid()
189 if ((exponent == 0) != (int_bit == 0)) in floatformat_i387_ext_is_valid()
473 long exponent; in floatformat_to_double() local
482 exponent = get_field (ufrom, fmt->byteorder, fmt->totalsize, in floatformat_to_double()
488 if ((unsigned long) exponent == fmt->exp_nan) in floatformat_to_double()
520 if (exponent == 0) in floatformat_to_double()
521 exponent = 1 - fmt->exp_bias; in floatformat_to_double()
524 exponent -= fmt->exp_bias; in floatformat_to_double()
531 dto = ldexp (1.0, exponent); in floatformat_to_double()
533 exponent++; in floatformat_to_double()
543 dto += ldexp ((double) mant, exponent - mant_bits); in floatformat_to_double()
544 exponent -= mant_bits; in floatformat_to_double()
608 int exponent; in floatformat_from_double() local
654 mant = frexp (dfrom, &exponent); in floatformat_from_double()
655 if (exponent + fmt->exp_bias - 1 > 0) in floatformat_from_double()
657 fmt->exp_len, exponent + fmt->exp_bias - 1); in floatformat_from_double()
664 mant = ldexp (mant, exponent + fmt->exp_bias - 1); in floatformat_from_double()
682 && exponent + fmt->exp_bias - 1 > 0) in floatformat_from_double()