]> Cypherpunks repositories - gostls13.git/commit
math: handle denormals in Frexp, Ilogb, Ldexp, and Logb
authorEoghan Sherry <ejsherry@gmail.com>
Wed, 19 Jan 2011 19:23:59 +0000 (14:23 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 19 Jan 2011 19:23:59 +0000 (14:23 -0500)
commit13c2e629669c03b440fc1406aff14f72b9450a48
tree96df4d02ac8a69d77c92299ce561d33ffc7980dc
parent01fad6a6b052292e598e78b30efb89a12ba1ea0e
math: handle denormals in Frexp, Ilogb, Ldexp, and Logb

Also:
* document special cases for Frexp and Ldexp
* handle ±Inf in Ldexp
* correctly return -0 on underflow in Ldexp
* test special cases for Ldexp
* test boundary cases for Frexp, Ilogb, Ldexp, and Logb

R=rsc
CC=golang-dev
https://golang.org/cl/3676041
src/pkg/math/all_test.go
src/pkg/math/bits.go
src/pkg/math/frexp.go
src/pkg/math/ldexp.go
src/pkg/math/logb.go