Home | History | Annotate | Download | only in atomic

Lines Matching refs:total

35 	total := uintptr(0)
37 atomic.Xadduintptr(&total, inc)
39 if want := uintptr(N * iter * inc); want != total {
40 t.Fatalf("xadduintpr error, want %d, got %d", want, total)
42 total = 0
44 atomic.Xadduintptr(&total, inc)
45 atomic.Xadduintptr(&total, uintptr(-int64(inc)))
47 if total != 0 {
48 t.Fatalf("xadduintpr total error, want %d, got %d", 0, total)