]> git.lizzy.rs Git - rust.git/commitdiff
Remove now-redundant branch
authorBenjamin Saunders <ben.e.saunders@gmail.com>
Fri, 19 Jun 2020 01:52:26 +0000 (18:52 -0700)
committerBenjamin Saunders <ben.e.saunders@gmail.com>
Fri, 19 Jun 2020 01:52:26 +0000 (18:52 -0700)
src/libstd/f32.rs
src/libstd/f64.rs

index ab468f42b3bd0c4d83856cefa9ca3d533a22a848..7899c422da62d633426fda5456cf60edc37be6da 100644 (file)
@@ -832,11 +832,7 @@ pub fn tanh(self) -> f32 {
     #[stable(feature = "rust1", since = "1.0.0")]
     #[inline]
     pub fn asinh(self) -> f32 {
-        if self == Self::NEG_INFINITY {
-            Self::NEG_INFINITY
-        } else {
-            (self.abs() + ((self * self) + 1.0).sqrt()).ln().copysign(self)
-        }
+        (self.abs() + ((self * self) + 1.0).sqrt()).ln().copysign(self)
     }
 
     /// Inverse hyperbolic cosine function.
index c033198f021c22bae6d44975ed55babb7340014f..c663c5ffc9bebfb54dd274160ffbbcd9fbd18cb5 100644 (file)
@@ -834,11 +834,7 @@ pub fn tanh(self) -> f64 {
     #[stable(feature = "rust1", since = "1.0.0")]
     #[inline]
     pub fn asinh(self) -> f64 {
-        if self == Self::NEG_INFINITY {
-            Self::NEG_INFINITY
-        } else {
-            (self.abs() + ((self * self) + 1.0).sqrt()).ln().copysign(self)
-        }
+        (self.abs() + ((self * self) + 1.0).sqrt()).ln().copysign(self)
     }
 
     /// Inverse hyperbolic cosine function.