...

Text file src/sync/atomic/asm.s

Documentation: sync/atomic

		 1// Copyright 2011 The Go Authors. All rights reserved.
		 2// Use of this source code is governed by a BSD-style
		 3// license that can be found in the LICENSE file.
		 4
		 5//go:build !race
		 6// +build !race
		 7
		 8#include "textflag.h"
		 9
		10TEXT ·SwapInt32(SB),NOSPLIT,$0
		11	JMP	runtime∕internal∕atomic·Xchg(SB)
		12
		13TEXT ·SwapUint32(SB),NOSPLIT,$0
		14	JMP	runtime∕internal∕atomic·Xchg(SB)
		15
		16TEXT ·SwapInt64(SB),NOSPLIT,$0
		17	JMP	runtime∕internal∕atomic·Xchg64(SB)
		18
		19TEXT ·SwapUint64(SB),NOSPLIT,$0
		20	JMP	runtime∕internal∕atomic·Xchg64(SB)
		21
		22TEXT ·SwapUintptr(SB),NOSPLIT,$0
		23	JMP	runtime∕internal∕atomic·Xchguintptr(SB)
		24
		25TEXT ·CompareAndSwapInt32(SB),NOSPLIT,$0
		26	JMP	runtime∕internal∕atomic·Cas(SB)
		27
		28TEXT ·CompareAndSwapUint32(SB),NOSPLIT,$0
		29	JMP	runtime∕internal∕atomic·Cas(SB)
		30
		31TEXT ·CompareAndSwapUintptr(SB),NOSPLIT,$0
		32	JMP	runtime∕internal∕atomic·Casuintptr(SB)
		33
		34TEXT ·CompareAndSwapInt64(SB),NOSPLIT,$0
		35	JMP	runtime∕internal∕atomic·Cas64(SB)
		36
		37TEXT ·CompareAndSwapUint64(SB),NOSPLIT,$0
		38	JMP	runtime∕internal∕atomic·Cas64(SB)
		39
		40TEXT ·AddInt32(SB),NOSPLIT,$0
		41	JMP	runtime∕internal∕atomic·Xadd(SB)
		42
		43TEXT ·AddUint32(SB),NOSPLIT,$0
		44	JMP	runtime∕internal∕atomic·Xadd(SB)
		45
		46TEXT ·AddUintptr(SB),NOSPLIT,$0
		47	JMP	runtime∕internal∕atomic·Xadduintptr(SB)
		48
		49TEXT ·AddInt64(SB),NOSPLIT,$0
		50	JMP	runtime∕internal∕atomic·Xadd64(SB)
		51
		52TEXT ·AddUint64(SB),NOSPLIT,$0
		53	JMP	runtime∕internal∕atomic·Xadd64(SB)
		54
		55TEXT ·LoadInt32(SB),NOSPLIT,$0
		56	JMP	runtime∕internal∕atomic·Load(SB)
		57
		58TEXT ·LoadUint32(SB),NOSPLIT,$0
		59	JMP	runtime∕internal∕atomic·Load(SB)
		60
		61TEXT ·LoadInt64(SB),NOSPLIT,$0
		62	JMP	runtime∕internal∕atomic·Load64(SB)
		63
		64TEXT ·LoadUint64(SB),NOSPLIT,$0
		65	JMP	runtime∕internal∕atomic·Load64(SB)
		66
		67TEXT ·LoadUintptr(SB),NOSPLIT,$0
		68	JMP	runtime∕internal∕atomic·Loaduintptr(SB)
		69
		70TEXT ·LoadPointer(SB),NOSPLIT,$0
		71	JMP	runtime∕internal∕atomic·Loadp(SB)
		72
		73TEXT ·StoreInt32(SB),NOSPLIT,$0
		74	JMP	runtime∕internal∕atomic·Store(SB)
		75
		76TEXT ·StoreUint32(SB),NOSPLIT,$0
		77	JMP	runtime∕internal∕atomic·Store(SB)
		78
		79TEXT ·StoreInt64(SB),NOSPLIT,$0
		80	JMP	runtime∕internal∕atomic·Store64(SB)
		81
		82TEXT ·StoreUint64(SB),NOSPLIT,$0
		83	JMP	runtime∕internal∕atomic·Store64(SB)
		84
		85TEXT ·StoreUintptr(SB),NOSPLIT,$0
		86	JMP	runtime∕internal∕atomic·Storeuintptr(SB)

View as plain text