Remove unnecessary infinity check
This commit is contained in:
parent
44cb46f7bf
commit
3515b4996a
@ -464,9 +464,8 @@ impl Hyperbolic for f32 {
|
||||
#[inline(always)]
|
||||
fn asinh(&self) -> f32 {
|
||||
match *self {
|
||||
infinity => infinity,
|
||||
neg_infinity => neg_infinity,
|
||||
x => (x + ((x * x) + 1.0).sqrt()).ln(),
|
||||
x => (x + ((x * x) + 1.0).sqrt()).ln(),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -476,9 +476,8 @@ impl Hyperbolic for f64 {
|
||||
#[inline(always)]
|
||||
fn asinh(&self) -> f64 {
|
||||
match *self {
|
||||
infinity => infinity,
|
||||
neg_infinity => neg_infinity,
|
||||
x => (x + ((x * x) + 1.0).sqrt()).ln(),
|
||||
x => (x + ((x * x) + 1.0).sqrt()).ln(),
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user