summaryrefslogtreecommitdiffhomepage
path: root/pkg
diff options
context:
space:
mode:
authorKoichi Shiraishi <zchee.io@gmail.com>2021-08-12 06:18:36 +0900
committerKoichi Shiraishi <zchee.io@gmail.com>2021-08-12 06:22:36 +0900
commitf13a9e2c13c2680fc53c08d49b659a874e9cc9b1 (patch)
treeb0a51274e27a3e227c90376c816fb96cb9b15102 /pkg
parentd00ef10456cd0fcf142864d6bfc5d8f8bc88e684 (diff)
Use BX insted of BP
Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
Diffstat (limited to 'pkg')
-rw-r--r--pkg/atomicbitops/atomicbitops_amd64.s24
1 files changed, 12 insertions, 12 deletions
diff --git a/pkg/atomicbitops/atomicbitops_amd64.s b/pkg/atomicbitops/atomicbitops_amd64.s
index 4d9358a3b..b6c2eb693 100644
--- a/pkg/atomicbitops/atomicbitops_amd64.s
+++ b/pkg/atomicbitops/atomicbitops_amd64.s
@@ -16,22 +16,22 @@
#include "textflag.h"
-TEXT ·AndUint32(SB),$8-12
- MOVQ addr+0(FP), BP
+TEXT ·AndUint32(SB),$0-12
+ MOVQ addr+0(FP), BX
MOVL val+8(FP), AX
LOCK
ANDL AX, 0(BP)
RET
-TEXT ·OrUint32(SB),$8-12
- MOVQ addr+0(FP), BP
+TEXT ·OrUint32(SB),$0-12
+ MOVQ addr+0(FP), BX
MOVL val+8(FP), AX
LOCK
ORL AX, 0(BP)
RET
-TEXT ·XorUint32(SB),$8-12
- MOVQ addr+0(FP), BP
+TEXT ·XorUint32(SB),$0-12
+ MOVQ addr+0(FP), BX
MOVL val+8(FP), AX
LOCK
XORL AX, 0(BP)
@@ -46,22 +46,22 @@ TEXT ·CompareAndSwapUint32(SB),$0-20
MOVL AX, ret+16(FP)
RET
-TEXT ·AndUint64(SB),$8-16
- MOVQ addr+0(FP), BP
+TEXT ·AndUint64(SB),$0-16
+ MOVQ addr+0(FP), BX
MOVQ val+8(FP), AX
LOCK
ANDQ AX, 0(BP)
RET
-TEXT ·OrUint64(SB),$8-16
- MOVQ addr+0(FP), BP
+TEXT ·OrUint64(SB),$0-16
+ MOVQ addr+0(FP), BX
MOVQ val+8(FP), AX
LOCK
ORQ AX, 0(BP)
RET
-TEXT ·XorUint64(SB),$8-16
- MOVQ addr+0(FP), BP
+TEXT ·XorUint64(SB),$0-16
+ MOVQ addr+0(FP), BX
MOVQ val+8(FP), AX
LOCK
XORQ AX, 0(BP)