Lines Matching refs:fraction
236 IntType fraction{value_}; in ToBinary() local
239 while (expo < 1 && (fraction > 0 || guard > oneHalf)) { in ToBinary()
241 ((static_cast<GuardType>(fraction) & 1) << (guardBits - 1)); in ToBinary()
242 fraction >>= 1; in ToBinary()
249 if (fraction == 0 && guard <= oneHalf) { in ToBinary()
253 while (fraction < topBit && expo > 1) { in ToBinary()
255 fraction = fraction * 2 + (guard >> (guardBits - 2)); in ToBinary()
262 incr = guard > oneHalf || (guard == oneHalf && (fraction & 1)); in ToBinary()
277 if (fraction == mask) { in ToBinary()
280 fraction = topBit; in ToBinary()
282 ++fraction; in ToBinary()
285 if (expo == 1 && fraction < topBit) { in ToBinary()
291 fraction = 0; in ToBinary()
297 fraction &= ~topBit; in ToBinary()
299 raw |= fraction; in ToBinary()