summaryrefslogtreecommitdiffstats
path: root/src/sync/atomic/asm.s
blob: 2022304665ef91bc98c71f11d6085cb3e32ef801 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
// Copyright 2011 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.

//go:build !race

#include "textflag.h"

TEXT ·SwapInt32(SB),NOSPLIT,$0
	JMP	runtimeinternalatomic·Xchg(SB)

TEXT ·SwapUint32(SB),NOSPLIT,$0
	JMP	runtimeinternalatomic·Xchg(SB)

TEXT ·SwapInt64(SB),NOSPLIT,$0
	JMP	runtimeinternalatomic·Xchg64(SB)

TEXT ·SwapUint64(SB),NOSPLIT,$0
	JMP	runtimeinternalatomic·Xchg64(SB)

TEXT ·SwapUintptr(SB),NOSPLIT,$0
	JMP	runtimeinternalatomic·Xchguintptr(SB)

TEXT ·CompareAndSwapInt32(SB),NOSPLIT,$0
	JMP	runtimeinternalatomic·Cas(SB)

TEXT ·CompareAndSwapUint32(SB),NOSPLIT,$0
	JMP	runtimeinternalatomic·Cas(SB)

TEXT ·CompareAndSwapUintptr(SB),NOSPLIT,$0
	JMP	runtimeinternalatomic·Casuintptr(SB)

TEXT ·CompareAndSwapInt64(SB),NOSPLIT,$0
	JMP	runtimeinternalatomic·Cas64(SB)

TEXT ·CompareAndSwapUint64(SB),NOSPLIT,$0
	JMP	runtimeinternalatomic·Cas64(SB)

TEXT ·AddInt32(SB),NOSPLIT,$0
	JMP	runtimeinternalatomic·Xadd(SB)

TEXT ·AddUint32(SB),NOSPLIT,$0
	JMP	runtimeinternalatomic·Xadd(SB)

TEXT ·AddUintptr(SB),NOSPLIT,$0
	JMP	runtimeinternalatomic·Xadduintptr(SB)

TEXT ·AddInt64(SB),NOSPLIT,$0
	JMP	runtimeinternalatomic·Xadd64(SB)

TEXT ·AddUint64(SB),NOSPLIT,$0
	JMP	runtimeinternalatomic·Xadd64(SB)

TEXT ·LoadInt32(SB),NOSPLIT,$0
	JMP	runtimeinternalatomic·Load(SB)

TEXT ·LoadUint32(SB),NOSPLIT,$0
	JMP	runtimeinternalatomic·Load(SB)

TEXT ·LoadInt64(SB),NOSPLIT,$0
	JMP	runtimeinternalatomic·Load64(SB)

TEXT ·LoadUint64(SB),NOSPLIT,$0
	JMP	runtimeinternalatomic·Load64(SB)

TEXT ·LoadUintptr(SB),NOSPLIT,$0
	JMP	runtimeinternalatomic·Loaduintptr(SB)

TEXT ·LoadPointer(SB),NOSPLIT,$0
	JMP	runtimeinternalatomic·Loadp(SB)

TEXT ·StoreInt32(SB),NOSPLIT,$0
	JMP	runtimeinternalatomic·Store(SB)

TEXT ·StoreUint32(SB),NOSPLIT,$0
	JMP	runtimeinternalatomic·Store(SB)

TEXT ·StoreInt64(SB),NOSPLIT,$0
	JMP	runtimeinternalatomic·Store64(SB)

TEXT ·StoreUint64(SB),NOSPLIT,$0
	JMP	runtimeinternalatomic·Store64(SB)

TEXT ·StoreUintptr(SB),NOSPLIT,$0
	JMP	runtimeinternalatomic·Storeuintptr(SB)