- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 32 for cas64 (0.21 sec)
-
src/runtime/runtime1.go
func testAtomic64() { test_z64 = 42 test_x64 = 0 if atomic.Cas64(&test_z64, test_x64, 1) { throw("cas64 failed") } if test_x64 != 0 { throw("cas64 failed") } test_x64 = 42 if !atomic.Cas64(&test_z64, test_x64, 1) { throw("cas64 failed") } if test_x64 != 42 || test_z64 != 1 { throw("cas64 failed") } if atomic.Load64(&test_z64) != 1 { throw("load64 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/bench_test.go
atomic.Cas(ptr, 0, 1) } }) } func BenchmarkCas64(b *testing.B) { var x uint64 x = 1 ptr := &x b.RunParallel(func(pb *testing.PB) { for pb.Next() { atomic.Cas64(ptr, 1, 0) atomic.Cas64(ptr, 0, 1) } }) } func BenchmarkXchg(b *testing.B) { var x uint32 x = 1 ptr := &x b.RunParallel(func(pb *testing.PB) { var y uint32 y = 1 for pb.Next() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 3.2K bytes - Viewed (0) -
src/internal/runtime/atomic/atomic_386.s
TEXT ·Xaddint32(SB), NOSPLIT, $0-12 JMP ·Xadd(SB) TEXT ·Xaddint64(SB), NOSPLIT, $0-20 JMP ·Xadd64(SB) // bool ·Cas64(uint64 *val, uint64 old, uint64 new) // Atomically: // if(*val == old){ // *val = new; // return 1; // } else { // return 0; // } TEXT ·Cas64(SB), NOSPLIT, $0-21 NO_LOCAL_POINTERS MOVL ptr+0(FP), BP TESTL $7, BP JZ 2(PC) CALL ·panicUnaligned(SB) MOVL old_lo+4(FP), AX
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 6.5K bytes - Viewed (0) -
src/internal/runtime/atomic/atomic_wasm.go
//go:linkname Xaddint64 //go:linkname Xadd64 //go:linkname Xadduintptr //go:linkname Xchg //go:linkname Xchg64 //go:linkname Xchgint32 //go:linkname Xchgint64 //go:linkname Xchguintptr //go:linkname Cas //go:linkname Cas64 //go:linkname Casint32 //go:linkname Casint64 //go:linkname Casuintptr //go:linkname Store //go:linkname Store64 //go:linkname Storeint32 //go:linkname Storeint64 //go:linkname Storeuintptr
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 5.4K bytes - Viewed (0) -
src/internal/runtime/atomic/atomic_mips64x.go
//go:noescape func Or64(ptr *uint64, val uint64) uint64 //go:noescape func Anduintptr(ptr *uintptr, val uintptr) uintptr //go:noescape func Oruintptr(ptr *uintptr, val uintptr) uintptr //go:noescape func Cas64(ptr *uint64, old, new uint64) bool //go:noescape func CasRel(ptr *uint32, old, new uint32) bool //go:noescape func Store(ptr *uint32, val uint32) //go:noescape func Store8(ptr *uint8, val uint8)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 11 21:29:34 UTC 2024 - 2.1K bytes - Viewed (0) -
src/internal/runtime/atomic/atomic_386.go
//go:noescape func Anduintptr(ptr *uintptr, val uintptr) uintptr //go:noescape func Oruintptr(ptr *uintptr, val uintptr) uintptr // NOTE: Do not add atomicxor8 (XOR is not idempotent). //go:noescape func Cas64(ptr *uint64, old, new uint64) bool //go:noescape func CasRel(ptr *uint32, old, new uint32) bool //go:noescape func Store(ptr *uint32, val uint32) //go:noescape func Store8(ptr *uint8, val uint8)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 2.2K bytes - Viewed (0) -
src/internal/runtime/atomic/atomic_loong64.go
//go:noescape func Anduintptr(ptr *uintptr, val uintptr) uintptr //go:noescape func Oruintptr(ptr *uintptr, val uintptr) uintptr // NOTE: Do not add atomicxor8 (XOR is not idempotent). //go:noescape func Cas64(ptr *uint64, old, new uint64) bool //go:noescape func CasRel(ptr *uint32, old, new uint32) bool //go:noescape func Store(ptr *uint32, val uint32) //go:noescape func Store8(ptr *uint8, val uint8)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 2.1K bytes - Viewed (0) -
src/internal/runtime/atomic/atomic_arm64.go
//go:noescape func Or64(ptr *uint64, val uint64) uint64 //go:noescape func Anduintptr(ptr *uintptr, val uintptr) uintptr //go:noescape func Oruintptr(ptr *uintptr, val uintptr) uintptr //go:noescape func Cas64(ptr *uint64, old, new uint64) bool //go:noescape func CasRel(ptr *uint32, old, new uint32) bool //go:noescape func Store(ptr *uint32, val uint32) //go:noescape func Store8(ptr *uint8, val uint8)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 2.1K bytes - Viewed (0) -
src/internal/runtime/atomic/atomic_s390x.go
//go:noescape func Xchg(ptr *uint32, new uint32) uint32 //go:noescape func Xchg64(ptr *uint64, new uint64) uint64 //go:noescape func Xchguintptr(ptr *uintptr, new uintptr) uintptr //go:noescape func Cas64(ptr *uint64, old, new uint64) bool //go:noescape
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 2.5K bytes - Viewed (0) -
src/internal/runtime/atomic/atomic_ppc64x.go
//go:noescape func Or64(ptr *uint64, val uint64) uint64 //go:noescape func Anduintptr(ptr *uintptr, val uintptr) uintptr //go:noescape func Oruintptr(ptr *uintptr, val uintptr) uintptr //go:noescape func Cas64(ptr *uint64, old, new uint64) bool //go:noescape func CasRel(ptr *uint32, old, new uint32) bool //go:noescape func Store(ptr *uint32, val uint32) //go:noescape func Store8(ptr *uint8, val uint8)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 2.1K bytes - Viewed (0)