Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement signalling nan #5

Open
michaeljclark opened this issue Feb 26, 2022 · 0 comments
Open

implement signalling nan #5

michaeljclark opened this issue Feb 26, 2022 · 0 comments

Comments

@michaeljclark
Copy link
Owner

currently, the code canonicalizes non-zero fractions of the infinity/nan exponent by setting the most significant bit of the mantissa (bit 3) i.e. nan(0x8) which is recommended to be the quiet bit. so it could be defined that (bit 3) i.e. nan(0x8) is the quiet bit so that a non zero mantissa with the quiet bit clear, such as (bit 0). such as nan(0x1) - nan(0x7) represents signalling nans.

The IEEE 754 standard make formal requirements and recommendations for the encoding of the signaling/quiet state.

For binary interchange formats, the most significant bit of the significand field is exclusively used to distinguish between quiet and signaling NaNs. Moreover, it should be an is_quiet flag. That is, this bit is non-zero if the NaN is quiet, and zero if the NaN is signalling.

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

No branches or pull requests

1 participant