- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for hammerStoreLoadInt32Method (0.28 sec)
-
src/sync/atomic/atomic_test.go
vhi := v >> 16 if vlo != vhi { t.Fatalf("Int32: %#x != %#x", vlo, vhi) } new := v + 1 + 1<<16 if vlo == 1e4 { new = 0 } StoreInt32(addr, new) } func hammerStoreLoadInt32Method(t *testing.T, paddr unsafe.Pointer) { addr := (*int32)(paddr) v := LoadInt32(addr) vlo := v & ((1 << 16) - 1) vhi := v >> 16 if vlo != vhi { t.Fatalf("Int32: %#x != %#x", vlo, vhi) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:37:29 UTC 2024 - 71.4K bytes - Viewed (0)