Skip to content

Add IEEE 754 exception status flags#18

Open
ptomsich wants to merge 1 commit intonadavrot:mainfrom
ptomsich:github/ptomsich/ieee754-exception-status-flags
Open

Add IEEE 754 exception status flags#18
ptomsich wants to merge 1 commit intonadavrot:mainfrom
ptomsich:github/ptomsich/ieee754-exception-status-flags

Conversation

@ptomsich
Copy link
Copy Markdown

Add a Status struct reporting inexact, underflow, overflow, invalid, and divide-by-zero exceptions. New *_with_status methods on Float (add, sub, mul, div, cast) return both the result and the status. Existing *_with_rm methods become thin wrappers that discard the status, preserving full backward compatibility.

The implementation threads status through normalize(), which already detected all these conditions internally but discarded them.

Add a Status struct reporting inexact, underflow, overflow, invalid,
and divide-by-zero exceptions. New *_with_status methods on Float
(add, sub, mul, div, cast) return both the result and the status.
Existing *_with_rm methods become thin wrappers that discard the
status, preserving full backward compatibility.

The implementation threads status through normalize(), which already
detected all these conditions internally but discarded them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant