about summary refs log tree commit diff
path: root/src/libstd/num
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2013-08-06 22:19:33 +1000
committerCorey Richardson <corey@octayn.net>2013-08-07 22:41:14 -0400
commit8460dac909fc10b6bf0216d0123735c283cc1391 (patch)
treef50b94385e592c43e57b46e0d5c68d127b431e37 /src/libstd/num
parenta185343fc42646b84db32391096e096cb1acba46 (diff)
downloadrust-8460dac909fc10b6bf0216d0123735c283cc1391.tar.gz
rust-8460dac909fc10b6bf0216d0123735c283cc1391.zip
std: add missing #[inline] annotation to the f64 arithmetic trait impls.
Diffstat (limited to 'src/libstd/num')
-rw-r--r--src/libstd/num/f64.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstd/num/f64.rs b/src/libstd/num/f64.rs
index c7db60e6fd2..60527905779 100644
--- a/src/libstd/num/f64.rs
+++ b/src/libstd/num/f64.rs
@@ -278,18 +278,22 @@ impl One for f64 {
 
 #[cfg(not(test))]
 impl Add<f64,f64> for f64 {
+    #[inline]
     fn add(&self, other: &f64) -> f64 { *self + *other }
 }
 #[cfg(not(test))]
 impl Sub<f64,f64> for f64 {
+    #[inline]
     fn sub(&self, other: &f64) -> f64 { *self - *other }
 }
 #[cfg(not(test))]
 impl Mul<f64,f64> for f64 {
+    #[inline]
     fn mul(&self, other: &f64) -> f64 { *self * *other }
 }
 #[cfg(not(test))]
 impl Div<f64,f64> for f64 {
+    #[inline]
     fn div(&self, other: &f64) -> f64 { *self / *other }
 }
 #[cfg(not(test))]