aboutsummaryrefslogtreecommitdiff
path: root/ctr-std/src/f32.rs
diff options
context:
space:
mode:
authorCristian Carlesso <[email protected]>2017-04-30 12:51:23 +0100
committerCristian Carlesso <[email protected]>2017-04-30 12:51:23 +0100
commite617cba56763674330ce286598776bc18f59598b (patch)
tree41081ac41025775f516a37ecba2ea6e1815ef42e /ctr-std/src/f32.rs
parentMerge pull request #29 from FenrirWolf/condvar_patch (diff)
downloadarchived-ctru-rs-e617cba56763674330ce286598776bc18f59598b.tar.xz
archived-ctru-rs-e617cba56763674330ce286598776bc18f59598b.zip
Make ctru-rs compile again
Diffstat (limited to 'ctr-std/src/f32.rs')
-rw-r--r--ctr-std/src/f32.rs34
1 files changed, 0 insertions, 34 deletions
diff --git a/ctr-std/src/f32.rs b/ctr-std/src/f32.rs
index 7a676c0..f793909 100644
--- a/ctr-std/src/f32.rs
+++ b/ctr-std/src/f32.rs
@@ -242,40 +242,6 @@ impl f32 {
#[inline]
pub fn classify(self) -> FpCategory { num::Float::classify(self) }
- /// Returns the mantissa, base 2 exponent, and sign as integers, respectively.
- /// The original number can be recovered by `sign * mantissa * 2 ^ exponent`.
- /// The floating point encoding is documented in the [Reference][floating-point].
- ///
- /// ```
- /// #![feature(float_extras)]
- ///
- /// use std::f32;
- ///
- /// let num = 2.0f32;
- ///
- /// // (8388608, -22, 1)
- /// let (mantissa, exponent, sign) = num.integer_decode();
- /// let sign_f = sign as f32;
- /// let mantissa_f = mantissa as f32;
- /// let exponent_f = num.powf(exponent as f32);
- ///
- /// // 1 * 8388608 * 2^(-22) == 2
- /// let abs_difference = (sign_f * mantissa_f * exponent_f - num).abs();
- ///
- /// assert!(abs_difference <= f32::EPSILON);
- /// ```
- /// [floating-point]: ../reference.html#machine-types
- #[unstable(feature = "float_extras", reason = "signature is undecided",
- issue = "27752")]
- #[rustc_deprecated(since = "1.11.0",
- reason = "never really came to fruition and easily \
- implementable outside the standard library")]
- #[inline]
- #[allow(deprecated)]
- pub fn integer_decode(self) -> (u64, i16, i8) {
- num::Float::integer_decode(self)
- }
-
/// Returns the largest integer less than or equal to a number.
///
/// ```