summaryrefslogtreecommitdiff
path: root/libgo/go/math/nextafter.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/math/nextafter.go')
-rw-r--r--libgo/go/math/nextafter.go16
1 files changed, 9 insertions, 7 deletions
diff --git a/libgo/go/math/nextafter.go b/libgo/go/math/nextafter.go
index bbb139986aa..9088e4d248a 100644
--- a/libgo/go/math/nextafter.go
+++ b/libgo/go/math/nextafter.go
@@ -5,10 +5,11 @@
package math
// Nextafter32 returns the next representable float32 value after x towards y.
-// Special cases:
+//
+// Special cases are:
// Nextafter32(x, x) = x
-// Nextafter32(NaN, y) = NaN
-// Nextafter32(x, NaN) = NaN
+// Nextafter32(NaN, y) = NaN
+// Nextafter32(x, NaN) = NaN
func Nextafter32(x, y float32) (r float32) {
switch {
case IsNaN(float64(x)) || IsNaN(float64(y)): // special case
@@ -26,10 +27,11 @@ func Nextafter32(x, y float32) (r float32) {
}
// Nextafter returns the next representable float64 value after x towards y.
-// Special cases:
-// Nextafter64(x, x) = x
-// Nextafter64(NaN, y) = NaN
-// Nextafter64(x, NaN) = NaN
+//
+// Special cases are:
+// Nextafter(x, x) = x
+// Nextafter(NaN, y) = NaN
+// Nextafter(x, NaN) = NaN
func Nextafter(x, y float64) (r float64) {
switch {
case IsNaN(x) || IsNaN(y): // special case