-
Notifications
You must be signed in to change notification settings - Fork 974
Open
Labels
A-binopArea: binary operatorsArea: binary operatorsA-commentsArea: commentsArea: commentsI-poor-formattingIssue: poor formattingIssue: poor formattingP-mediumMedium priorityMedium priorityS-duplicateStatus: duplicate of another issue or PRStatus: duplicate of another issue or PR
Milestone
Description
Sample code:
fn main() {
/* Common case: The double precision result is fine. */
if (ui & 0x1fffffff) != 0x10000000 /* not a halfway case */
|| e == 0x7ff /* NaN */
|| (result - xy == z as f64 && result - z as f64 == xy) /* exact */
|| fegetround() != FE_TONEAREST
/* not round-to-nearest */
{}
}What I expect:
fn main() {
/* Common case: The double precision result is fine. */
if (ui & 0x1fffffff) != 0x10000000 /* not a halfway case */
|| e == 0x7ff /* NaN */
|| (result - xy == z as f64 && result - z as f64 == xy) /* exact */
|| fegetround() != FE_TONEAREST /* not round-to-nearest */
{
}
}Metadata
Metadata
Assignees
Labels
A-binopArea: binary operatorsArea: binary operatorsA-commentsArea: commentsArea: commentsI-poor-formattingIssue: poor formattingIssue: poor formattingP-mediumMedium priorityMedium priorityS-duplicateStatus: duplicate of another issue or PRStatus: duplicate of another issue or PR