From d350927ba1c51d1f708be2f2904f826fdb79b8cd Mon Sep 17 00:00:00 2001 From: Mauri de Souza Meneguzzo Date: Sat, 18 Nov 2023 14:48:54 -0300 Subject: [PATCH] remove noinline, fix header --- src/runtime/internal/atomic/atomic_andor_generic.go | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/runtime/internal/atomic/atomic_andor_generic.go b/src/runtime/internal/atomic/atomic_andor_generic.go index cd84dab353..c790e062c5 100644 --- a/src/runtime/internal/atomic/atomic_andor_generic.go +++ b/src/runtime/internal/atomic/atomic_andor_generic.go @@ -1,13 +1,12 @@ -//go:build s390x || loong64 || mips || mipsle || mips64 || mips64le - // Copyright 2023 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 s390x || loong64 || mips || mipsle || mips64 || mips64le + package atomic //go:nosplit -//go:noinline func And32(ptr *uint32, val uint32) uint32 { for { old := *ptr @@ -18,7 +17,6 @@ func And32(ptr *uint32, val uint32) uint32 { } //go:nosplit -//go:noinline func Or32(ptr *uint32, val uint32) uint32 { for { old := *ptr @@ -29,7 +27,6 @@ func Or32(ptr *uint32, val uint32) uint32 { } //go:nosplit -//go:noinline func And64(ptr *uint64, val uint64) uint64 { for { old := *ptr @@ -40,7 +37,6 @@ func And64(ptr *uint64, val uint64) uint64 { } //go:nosplit -//go:noinline func Or64(ptr *uint64, val uint64) uint64 { for { old := *ptr @@ -51,7 +47,6 @@ func Or64(ptr *uint64, val uint64) uint64 { } //go:nosplit -//go:noinline func Anduintptr(ptr *uintptr, val uintptr) uintptr { for { old := *ptr @@ -62,7 +57,6 @@ func Anduintptr(ptr *uintptr, val uintptr) uintptr { } //go:nosplit -//go:noinline func Oruintptr(ptr *uintptr, val uintptr) uintptr { for { old := *ptr