-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
E4M3: Add support for encoding infinities
- Loading branch information
1 parent
d61b9eb
commit ff843fe
Showing
4 changed files
with
47 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Arguments: -fe4m3 inf | ||
Exit code: ExitSuccess | ||
Satisfiable. Model: | ||
ENCODED = NaN :: E4M3 | ||
7 6543 210 | ||
S -E4- S3- | ||
Binary layout: 0 1111 111 | ||
Hex layout: 7F | ||
Precision: 4 exponent bits, 3 significand bits | ||
Sign: Positive | ||
Exponent: 8 (Stored: 15, Bias: 7) | ||
Classification: FP_NAN (Quiet) | ||
Value: NaN | ||
Note: The input value was infinite, which is not representable in E4M3. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Arguments: -fe4m3 -- -inf | ||
Exit code: ExitSuccess | ||
Satisfiable. Model: | ||
ENCODED = NaN :: E4M3 | ||
7 6543 210 | ||
S -E4- S3- | ||
Binary layout: 0 1111 111 | ||
Hex layout: 7F | ||
Precision: 4 exponent bits, 3 significand bits | ||
Sign: Positive | ||
Exponent: 8 (Stored: 15, Bias: 7) | ||
Classification: FP_NAN (Quiet) | ||
Value: NaN | ||
Note: The input value was infinite, which is not representable in E4M3. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters