Lines Matching refs:halfway
185 uint32_t halfway = 1 << (lsb_pos - 1);
186 uint32_t mask = (halfway << 1) - 1;
190 if ((f_mant & mask) > halfway)
192 // More than halfway -> round up
195 else if ((f_mant & mask) == halfway)
197 // Exactly halfway -> round to nearest even
311 uint64_t halfway = (uint64_t)1 << (lsb_pos - 1);
312 uint64_t mask = (halfway << 1) - 1;
316 if ((d_mant & mask) > halfway)
318 // More than halfway -> round up
321 else if ((d_mant & mask) == halfway)
323 // Exactly halfway -> round to nearest even