According to the godoc <https://godoc.org/sync/atomic>:
The add operation, implemented by the AddT functions, is the atomic > equivalent of: > >> *addr += delta >> return *addr > > which provides a guarantee of the correct overflow behavior. On Mon, Oct 3, 2016 at 5:45 PM, Caleb Spare <[email protected]> wrote: > > I'm familiar with (and greatly appreciate!) the guarantees regarding > > overflow for ordinary integer arithmetic in the Go spec > > Which guarantees? > Search for "integer overflow": https://golang.org/ref/spec -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
