summaryrefslogtreecommitdiff
path: root/vendor/modernc.org/libc/atomic.go
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2025-02-14 16:54:10 +0000
committerLibravatar GitHub <noreply@github.com>2025-02-14 16:54:10 +0000
commitebbdeee0bb91d5008a405e43114f1653ecdf8ce8 (patch)
treed9b1c087a34e6f5947d553f7cb04503b3c411e93 /vendor/modernc.org/libc/atomic.go
parent[bugfix] Drop status indices AFTER updating visibility (#3795) (diff)
downloadgotosocial-ebbdeee0bb91d5008a405e43114f1653ecdf8ce8.tar.xz
bump modernc.org/sqlite to v1.35.0-concurrency-workaround (#3797)
Diffstat (limited to 'vendor/modernc.org/libc/atomic.go')
-rw-r--r--vendor/modernc.org/libc/atomic.go11
1 files changed, 1 insertions, 10 deletions
diff --git a/vendor/modernc.org/libc/atomic.go b/vendor/modernc.org/libc/atomic.go
index 66b554625..6e42a3d0c 100644
--- a/vendor/modernc.org/libc/atomic.go
+++ b/vendor/modernc.org/libc/atomic.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-//go:build linux && (amd64 || arm64 || loong64)
+//go:build linux && (amd64 || arm64 || loong64 || ppc64le || s390x || riscv64 || 386 || arm)
package libc // import "modernc.org/libc"
@@ -38,15 +38,6 @@ func a_store_16(addr uintptr, val uint16) {
*(*uint16)(unsafe.Pointer(addr)) = val
}
-// static inline int a_ctz_l(unsigned long x)
-func _a_ctz_l(tls *TLS, x ulong) int32 {
- if unsafe.Sizeof(x) == 8 {
- return int32(mbits.TrailingZeros64(x))
- }
-
- return int32(mbits.TrailingZeros32(uint32(x)))
-}
-
// static inline int a_ctz_64(uint64_t x)
func _a_ctz_64(tls *TLS, x uint64) int32 {
return int32(mbits.TrailingZeros64(x))