- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for Store64 (0.11 sec)
-
src/runtime/runtime1.go
} if test_x64 != 42 || test_z64 != 1 { throw("cas64 failed") } if atomic.Load64(&test_z64) != 1 { throw("load64 failed") } atomic.Store64(&test_z64, (1<<40)+1) if atomic.Load64(&test_z64) != (1<<40)+1 { throw("store64 failed") } if atomic.Xadd64(&test_z64, (1<<40)+1) != (2<<40)+2 { throw("xadd64 failed") } if atomic.Load64(&test_z64) != (2<<40)+2 { throw("xadd64 failed")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:52:17 UTC 2024 - 19.3K bytes - Viewed (0) -
src/internal/runtime/atomic/types.go
// //go:nosplit func (u *Uint64) Load() uint64 { return Load64(&u.value) } // Store updates the value atomically. // //go:nosplit func (u *Uint64) Store(value uint64) { Store64(&u.value, value) } // CompareAndSwap atomically compares u's value with old, // and if they're equal, swaps u's value with new. // It reports whether the swap ran. // //go:nosplit
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 14.2K bytes - Viewed (0) -
src/runtime/profbuf.go
) func (x *profAtomic) load() profIndex { return profIndex(atomic.Load64((*uint64)(x))) } func (x *profAtomic) store(new profIndex) { atomic.Store64((*uint64)(x), uint64(new)) } func (x *profAtomic) cas(old, new profIndex) bool { return atomic.Cas64((*uint64)(x), uint64(old), uint64(new)) } func (x profIndex) dataCount() uint32 { return uint32(x)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 18.2K bytes - Viewed (0)