diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-02-10 09:19:02 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-02-10 09:19:02 +0000 |
commit | 652cd6cb0c05beda207c196311f6325ddb7ff363 (patch) | |
tree | 45734f85050b1de673fb8968f0f13406670db738 /libgo/go/math/lgamma.go | |
parent | 0c371dfad594c22f8062f7cd9f831ec60998d0b3 (diff) | |
download | gcc-652cd6cb0c05beda207c196311f6325ddb7ff363.tar.gz |
2012-02-10 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 184083 using svnmerge
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@184084 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/go/math/lgamma.go')
-rw-r--r-- | libgo/go/math/lgamma.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libgo/go/math/lgamma.go b/libgo/go/math/lgamma.go index e2bad69dc03..6a02c412d93 100644 --- a/libgo/go/math/lgamma.go +++ b/libgo/go/math/lgamma.go @@ -183,15 +183,13 @@ func Lgamma(x float64) (lgamma float64, sign int) { // Tt = -(tail of Tf) Tt = -3.63867699703950536541e-18 // 0xBC50C7CAA48A971F ) - // TODO(rsc): Remove manual inlining of IsNaN, IsInf - // when compiler does it for us // special cases sign = 1 switch { - case x != x: // IsNaN(x): + case IsNaN(x): lgamma = x return - case x < -MaxFloat64 || x > MaxFloat64: // IsInf(x, 0): + case IsInf(x, 0): lgamma = x return case x == 0: |