diff options
| author | pravic <[email protected]> | 2016-04-12 17:48:41 +0300 |
|---|---|---|
| committer | pravic <[email protected]> | 2016-04-12 17:48:41 +0300 |
| commit | c868536ae3f7c468ab62e4853e806d6d4150bdc5 (patch) | |
| tree | 9f2b0fbe414eb81dc1cdd92aa5754e9063bf2c20 /libcore/intrinsics.rs | |
| parent | add libcore from 2016-04-11 nightly (diff) | |
| download | kmd-env-rs-c868536ae3f7c468ab62e4853e806d6d4150bdc5.tar.xz kmd-env-rs-c868536ae3f7c468ab62e4853e806d6d4150bdc5.zip | |
apply libcore_nofp patch
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 03bcf9c..4ab434d 100644 --- a/libcore/intrinsics.rs +++ b/libcore/intrinsics.rs @@ -448,7 +448,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` @@ -570,8 +573,9 @@ extern "rust-intrinsic" { /// May assume inputs are finite. #[cfg(not(stage0))] 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; |