Remove unnecessary infinity check

This commit is contained in:
Brendan Zabarauskas 2013-05-14 11:47:44 +10:00
parent 44cb46f7bf
commit 3515b4996a
2 changed files with 2 additions and 4 deletions

View File

@ -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(),
}
}

View File

@ -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(),
}
}