Skip to content

Commit

Permalink
Remove now-redundant branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralith committed Jun 19, 2020
1 parent 730f736 commit 35a2915
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions src/libstd/f32.rs
Original file line number Diff line number Diff line change
Expand Up @@ -832,11 +832,7 @@ impl 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.
Expand Down
6 changes: 1 addition & 5 deletions src/libstd/f64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -834,11 +834,7 @@ impl 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.
Expand Down

0 comments on commit 35a2915

Please sign in to comment.