Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 398 for Xadd (0.08 sec)

  1. src/internal/runtime/atomic/atomic_arm64.s

    	RET
    #endif
    
    // uint32 xadd(uint32 volatile *ptr, int32 delta)
    // Atomically:
    //      *val += delta;
    //      return *val;
    TEXT ·Xadd(SB), NOSPLIT, $0-20
    	MOVD	ptr+0(FP), R0
    	MOVW	delta+8(FP), R1
    #ifndef GOARM64_LSE
    	MOVBU	internal∕cpu·ARM64+const_offsetARM64HasATOMICS(SB), R4
    	CBZ 	R4, load_store_loop
    #endif
    	LDADDALW	R1, (R0), R2
    	ADD 	R1, R2
    	MOVW	R2, ret+16(FP)
    	RET
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 9K bytes
    - Viewed (0)
  2. src/internal/runtime/atomic/atomic_ppc64x.s

    TEXT ·Xadd(SB), NOSPLIT, $0-20
    	MOVD	ptr+0(FP), R4
    	MOVW	delta+8(FP), R5
    	LWSYNC
    	LWAR	(R4), R3
    	ADD	R5, R3
    	STWCCC	R3, (R4)
    	BNE	-3(PC)
    	MOVW	R3, ret+16(FP)
    	RET
    
    // uint64 Xadd64(uint64 volatile *val, int64 delta)
    // Atomically:
    //	*val += delta;
    //	return *val;
    TEXT ·Xadd64(SB), NOSPLIT, $0-24
    	MOVD	ptr+0(FP), R4
    	MOVD	delta+8(FP), R5
    	LWSYNC
    	LDAR	(R4), R3
    	ADD	R5, R3
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  3. src/internal/runtime/atomic/atomic_mips64x.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build mips64 || mips64le
    
    package atomic
    
    import "unsafe"
    
    //go:noescape
    func Xadd(ptr *uint32, delta int32) uint32
    
    //go:noescape
    func Xadd64(ptr *uint64, delta int64) uint64
    
    //go:noescape
    func Xadduintptr(ptr *uintptr, delta uintptr) uintptr
    
    //go:noescape
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 11 21:29:34 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  4. src/internal/runtime/atomic/atomic_ppc64x.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build ppc64 || ppc64le
    
    package atomic
    
    import "unsafe"
    
    //go:noescape
    func Xadd(ptr *uint32, delta int32) uint32
    
    //go:noescape
    func Xadd64(ptr *uint64, delta int64) uint64
    
    //go:noescape
    func Xadduintptr(ptr *uintptr, delta uintptr) uintptr
    
    //go:noescape
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  5. src/internal/runtime/atomic/atomic_arm64.go

    //go:build arm64
    
    package atomic
    
    import (
    	"internal/cpu"
    	"unsafe"
    )
    
    const (
    	offsetARM64HasATOMICS = unsafe.Offsetof(cpu.ARM64.HasATOMICS)
    )
    
    //go:noescape
    func Xadd(ptr *uint32, delta int32) uint32
    
    //go:noescape
    func Xadd64(ptr *uint64, delta int64) uint64
    
    //go:noescape
    func Xadduintptr(ptr *uintptr, delta uintptr) uintptr
    
    //go:noescape
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  6. src/internal/runtime/atomic/atomic_s390x.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 Xadd(ptr *uint32, delta int32) uint32
    
    //go:noescape
    func Xadd64(ptr *uint64, delta int64) uint64
    
    //go:noescape
    func Xadduintptr(ptr *uintptr, delta uintptr) uintptr
    
    //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)
  7. src/internal/runtime/atomic/atomic_riscv64.go

    // Copyright 2015 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package atomic
    
    import "unsafe"
    
    //go:noescape
    func Xadd(ptr *uint32, delta int32) uint32
    
    //go:noescape
    func Xadd64(ptr *uint64, delta int64) uint64
    
    //go:noescape
    func Xadduintptr(ptr *uintptr, delta uintptr) uintptr
    
    //go:noescape
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 2K bytes
    - Viewed (0)
  8. src/internal/runtime/atomic/atomic_loong64.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build loong64
    
    package atomic
    
    import "unsafe"
    
    //go:noescape
    func Xadd(ptr *uint32, delta int32) uint32
    
    //go:noescape
    func Xadd64(ptr *uint64, delta int64) uint64
    
    //go:noescape
    func Xadduintptr(ptr *uintptr, delta uintptr) uintptr
    
    //go:noescape
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  9. src/internal/runtime/atomic/atomic_amd64.go

    }
    
    //go:nosplit
    //go:noinline
    func LoadAcq64(ptr *uint64) uint64 {
    	return *ptr
    }
    
    //go:nosplit
    //go:noinline
    func LoadAcquintptr(ptr *uintptr) uintptr {
    	return *ptr
    }
    
    //go:noescape
    func Xadd(ptr *uint32, delta int32) uint32
    
    //go:noescape
    func Xadd64(ptr *uint64, delta int64) uint64
    
    //go:noescape
    func Xadduintptr(ptr *uintptr, delta uintptr) uintptr
    
    //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)
  10. src/internal/runtime/atomic/atomic_arm.s

    TEXT ·StoreRel(SB),NOSPLIT,$0-8
    	B	·Store(SB)
    
    TEXT ·StoreReluintptr(SB),NOSPLIT,$0-8
    	B	·Store(SB)
    
    TEXT ·Xaddint32(SB),NOSPLIT,$0-12
    	B	·Xadd(SB)
    
    TEXT ·Xaddint64(SB),NOSPLIT,$-4-20
    	B	·Xadd64(SB)
    
    TEXT ·Xadduintptr(SB),NOSPLIT,$0-12
    	B	·Xadd(SB)
    
    TEXT ·Xchgint32(SB),NOSPLIT,$0-12
    	B	·Xchg(SB)
    
    TEXT ·Xchgint64(SB),NOSPLIT,$-4-20
    	B	·Xchg64(SB)
    
    // 64-bit atomics
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 5.7K bytes
    - Viewed (0)
Back to top