aboutsummaryrefslogtreecommitdiff
path: root/libcore/intrinsics.rs
diff options
context:
space:
mode:
authorpravic <[email protected]>2016-04-29 21:25:33 +0300
committerpravic <[email protected]>2016-04-29 21:25:33 +0300
commit8c8ef9d5b88377f345220e577ca78e1713b87539 (patch)
tree9bf7ae22e9e635b67734aeb14226d4ed9e0b58c0 /libcore/intrinsics.rs
parentadd libcore from 2016-04-11 nightly (diff)
downloadkmd-env-rs-8c8ef9d5b88377f345220e577ca78e1713b87539.tar.xz
kmd-env-rs-8c8ef9d5b88377f345220e577ca78e1713b87539.zip
apply libcore_nofp patch
Diffstat (limited to 'libcore/intrinsics.rs')
-rw-r--r--libcore/intrinsics.rs6
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;