File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -832,11 +832,7 @@ impl f32 {
832832 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
833833 #[ inline]
834834 pub fn asinh ( self ) -> f32 {
835- if self == Self :: NEG_INFINITY {
836- Self :: NEG_INFINITY
837- } else {
838- ( self . abs ( ) + ( ( self * self ) + 1.0 ) . sqrt ( ) ) . ln ( ) . copysign ( self )
839- }
835+ ( self . abs ( ) + ( ( self * self ) + 1.0 ) . sqrt ( ) ) . ln ( ) . copysign ( self )
840836 }
841837
842838 /// Inverse hyperbolic cosine function.
Original file line number Diff line number Diff line change @@ -834,11 +834,7 @@ impl f64 {
834834 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
835835 #[ inline]
836836 pub fn asinh ( self ) -> f64 {
837- if self == Self :: NEG_INFINITY {
838- Self :: NEG_INFINITY
839- } else {
840- ( self . abs ( ) + ( ( self * self ) + 1.0 ) . sqrt ( ) ) . ln ( ) . copysign ( self )
841- }
837+ ( self . abs ( ) + ( ( self * self ) + 1.0 ) . sqrt ( ) ) . ln ( ) . copysign ( self )
842838 }
843839
844840 /// Inverse hyperbolic cosine function.
You can’t perform that action at this time.
0 commit comments