]> Cypherpunks repositories - gostls13.git/commit
sync/atomic: explain how to subtract an unsigned constant
authorRob Pike <r@golang.org>
Thu, 3 Oct 2013 17:40:42 +0000 (10:40 -0700)
committerRob Pike <r@golang.org>
Thu, 3 Oct 2013 17:40:42 +0000 (10:40 -0700)
commitc4579635cf6aafdb5db231058dd0aedee14fe0ee
tree17a45352dce46842454abd84727ef7758ee78276
parent01479b6c4a5a7863b9712b16123d41fea6a3951f
sync/atomic: explain how to subtract an unsigned constant
Explain for those unfamiliar with twos-complement arithmetic how to
implement negation of signed positive constant.
Fixes #6408.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/14267044
src/pkg/sync/atomic/doc.go