diff options
| author | pravic <[email protected]> | 2016-06-06 23:06:58 +0300 |
|---|---|---|
| committer | pravic <[email protected]> | 2016-06-06 23:06:58 +0300 |
| commit | 1c889bacaf6b132e605638c5a8f9a78bdf8c7e67 (patch) | |
| tree | 2b00929b29754929bfd86c868cd6cd6f1052c2bb /libcore/intrinsics.rs | |
| parent | update to 2016-06-06 (diff) | |
| parent | apply libcore_nofp patch (diff) | |
| download | kmd-env-rs-1c889bacaf6b132e605638c5a8f9a78bdf8c7e67.tar.xz kmd-env-rs-1c889bacaf6b132e605638c5a8f9a78bdf8c7e67.zip | |
Merge branch 'nofp_patch' into libcore_nofp
Diffstat (limited to 'libcore/intrinsics.rs')
| -rw-r--r-- | libcore/intrinsics.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libcore/intrinsics.rs b/libcore/intrinsics.rs index 94baf18..baf0838 100644 --- a/libcore/intrinsics.rs +++ b/libcore/intrinsics.rs @@ -435,7 +435,10 @@ extern "rust-intrinsic" { pub fn volatile_load<T>(src: *const T) -> T; /// Perform a volatile store to the `dst` pointer. pub fn volatile_store<T>(dst: *mut T, val: T); +} +#[cfg(not(disable_float))] +extern "rust-intrinsic" { /// Returns the square root of an `f32` pub fn sqrtf32(x: f32) -> f32; /// Returns the square root of an `f64` @@ -552,8 +555,9 @@ extern "rust-intrinsic" { /// Float remainder that allows optimizations based on algebraic rules. /// May assume inputs are finite. pub fn frem_fast<T>(a: T, b: T) -> T; +} - +extern "rust-intrinsic" { /// Returns the number of bits set in an integer type `T` pub fn ctpop<T>(x: T) -> T; |