Implement Add/Sub for Float64 (#17)

Signed-off-by: Anton Tiurin <noxiouz@yandex.ru>
This commit is contained in:
Anton Tyurin
2016-12-15 20:56:52 +01:00
committed by Prashant Varanasi
parent 74ca5ec650
commit 3b8db5e93c
3 changed files with 20 additions and 0 deletions

View File

@@ -110,6 +110,8 @@ func TestStressFloat64(t *testing.T) {
runStress(func() {
atom.Load()
atom.CAS(1.0, 0.1)
atom.Add(1.1)
atom.Sub(0.2)
atom.Store(1.0)
})
}