about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-10-21 08:56:28 -0700
committerbors <bors@rust-lang.org>2013-10-21 08:56:28 -0700
commitebb9b461914347950592f9a2d4e53e324f2f1238 (patch)
treef4f06e7e9b31dc7c3a212e58587d2af329a78954 /src/libstd
parent6e6981c3eb92ab87342ae9ccb3ead879fb7cbdb0 (diff)
parent45334326127285e9442ae1c3e9f4ba9c428ec3c6 (diff)
downloadrust-ebb9b461914347950592f9a2d4e53e324f2f1238.tar.gz
rust-ebb9b461914347950592f9a2d4e53e324f2f1238.zip
auto merge of #9986 : thestinger/rust/float, r=cmr
copysign, ring, nearbyint, round
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/unstable/intrinsics.rs20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/libstd/unstable/intrinsics.rs b/src/libstd/unstable/intrinsics.rs
index 3a3c6e6538c..8959d591c37 100644
--- a/src/libstd/unstable/intrinsics.rs
+++ b/src/libstd/unstable/intrinsics.rs
@@ -413,6 +413,11 @@ extern "rust-intrinsic" {
     pub fn fabsf32(x: f32) -> f32;
     pub fn fabsf64(x: f64) -> f64;
 
+    #[cfg(not(stage0))]
+    pub fn copysignf32(x: f32) -> f32;
+    #[cfg(not(stage0))]
+    pub fn copysignf64(x: f64) -> f64;
+
     pub fn floorf32(x: f32) -> f32;
     pub fn floorf64(x: f64) -> f64;
 
@@ -422,6 +427,21 @@ extern "rust-intrinsic" {
     pub fn truncf32(x: f32) -> f32;
     pub fn truncf64(x: f64) -> f64;
 
+    #[cfg(not(stage0))]
+    pub fn rintf32(x: f32) -> f32;
+    #[cfg(not(stage0))]
+    pub fn rintf64(x: f64) -> f64;
+
+    #[cfg(not(stage0))]
+    pub fn nearbyintf32(x: f32) -> f32;
+    #[cfg(not(stage0))]
+    pub fn nearbyintf64(x: f64) -> f64;
+
+    #[cfg(not(stage0))]
+    pub fn roundf32(x: f32) -> f32;
+    #[cfg(not(stage0))]
+    pub fn roundf64(x: f64) -> f64;
+
     pub fn ctpop8(x: i8) -> i8;
     pub fn ctpop16(x: i16) -> i16;
     pub fn ctpop32(x: i32) -> i32;