summaryrefslogtreecommitdiff
path: root/libgo/go/math/sin.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/math/sin.go')
-rw-r--r--libgo/go/math/sin.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/libgo/go/math/sin.go b/libgo/go/math/sin.go
index 1c5491f6dc..75579ab4ed 100644
--- a/libgo/go/math/sin.go
+++ b/libgo/go/math/sin.go
@@ -146,8 +146,8 @@ func cos(x float64) float64 {
// map zeros to origin
if j&1 == 1 {
- j += 1
- y += 1
+ j++
+ y++
}
j &= 7 // octant modulo 2Pi radians (360 degrees)
if j > 3 {
@@ -212,8 +212,8 @@ func sin(x float64) float64 {
// map zeros to origin
if j&1 == 1 {
- j += 1
- y += 1
+ j++
+ y++
}
j &= 7 // octant modulo 2Pi radians (360 degrees)
// reflect in x axis