Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The `integer_decode()` function decodes a float (f32/f64) into integers containing the mantissa, exponent and sign. It's needed for `rationalize()` implementation of #9838. The code got ported from ABCL [1]. [1] http://abcl.org/trac/browser/trunk/abcl/src/org/armedbear/lisp/FloatFunctions.java?rev=14465#L94
- Loading branch information
Showing
3 changed files
with
60 additions
and
0 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
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
30a9c6e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from cmr
at vmx@30a9c6e
30a9c6e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging vmx/rust/integer-decode = 30a9c6e into auto
30a9c6e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vmx/rust/integer-decode = 30a9c6e merged ok, testing candidate = 64bcfd2
30a9c6e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tests pass:
success: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/2804
success: http://buildbot.rust-lang.org/builders/auto-mac-32-nopt-c/builds/649
success: http://buildbot.rust-lang.org/builders/auto-mac-32-nopt-t/builds/649
success: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/2808
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-c/builds/1914
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/1913
success: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/2820
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/1912
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/1913
success: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/2822
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/1912
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/1912
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android/builds/1988
success: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/2809
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-c/builds/1913
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/1915
success: http://buildbot.rust-lang.org/builders/auto-bsd-64-opt/builds/2584
30a9c6e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast-forwarding master to auto = 64bcfd2