]> git.lizzy.rs Git - rust.git/commit
auto merge of #10803 : vmx/rust/integer-decode, r=cmr
authorbors <bors@rust-lang.org>
Thu, 5 Dec 2013 02:46:21 +0000 (18:46 -0800)
committerbors <bors@rust-lang.org>
Thu, 5 Dec 2013 02:46:21 +0000 (18:46 -0800)
commit64bcfd246ca0a7522069bad9f6217ec3e783db8e
tree29d84af1290b370489369d86174ee85fcbd24e6b
parentedb9e85ce2e3708abe3a81d9645054e3eab85395
parent30a9c6e4904f1d74b5ece97a422a0f1b148f4ba1
auto merge of #10803 : vmx/rust/integer-decode, r=cmr

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

I got the permission to use this code for Rust from Peter Graves (the ABCL copyright holder) . If there's any further IP clearance needed, let me know.