1
0
mirror of https://github.com/golang/go synced 2024-11-17 17:04:47 -07:00

remove noinline, fix header

This commit is contained in:
Mauri de Souza Meneguzzo 2023-11-18 14:48:54 -03:00
parent e2727ee241
commit d350927ba1

View File

@ -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