mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-01 22:12:25 -05:00
bump modernc.org/sqlite to v1.35.0-concurrency-workaround (#3797)
This commit is contained in:
parent
879ca2d2f8
commit
ebbdeee0bb
114 changed files with 891873 additions and 192475 deletions
22
vendor/modernc.org/libc/builtin.go
generated
vendored
22
vendor/modernc.org/libc/builtin.go
generated
vendored
|
|
@ -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"
|
||||
|
||||
|
|
@ -32,6 +32,10 @@ func X__builtin_round(tls *TLS, x float64) (r float64) {
|
|||
return Xround(tls, x)
|
||||
}
|
||||
|
||||
func X__builtin_lround(tls *TLS, x float64) (r long) {
|
||||
return Xlround(tls, x)
|
||||
}
|
||||
|
||||
func X__builtin_roundf(tls *TLS, x float32) (r float32) {
|
||||
return Xroundf(tls, x)
|
||||
}
|
||||
|
|
@ -60,10 +64,6 @@ func X__builtin_clz(t *TLS, n uint32) int32 {
|
|||
return int32(mbits.LeadingZeros32(n))
|
||||
}
|
||||
|
||||
func X__builtin_clzl(t *TLS, n ulong) int32 {
|
||||
return int32(mbits.LeadingZeros64(n))
|
||||
}
|
||||
|
||||
func X__builtin_clzll(t *TLS, n uint64) int32 {
|
||||
return int32(mbits.LeadingZeros64(n))
|
||||
}
|
||||
|
|
@ -164,11 +164,6 @@ func X__builtin_popcount(t *TLS, x uint32) int32 {
|
|||
return int32(mbits.OnesCount32(x))
|
||||
}
|
||||
|
||||
// int __builtin_popcountl (unsigned long x)
|
||||
func X__builtin_popcountl(t *TLS, x ulong) int32 {
|
||||
return int32(mbits.OnesCount64(x))
|
||||
}
|
||||
|
||||
// char * __builtin___strcpy_chk (char *dest, const char *src, size_t os);
|
||||
func X__builtin___strcpy_chk(t *TLS, dest, src uintptr, os Tsize_t) uintptr {
|
||||
return Xstrcpy(t, dest, src)
|
||||
|
|
@ -295,7 +290,12 @@ func X__builtin___memset_chk(t *TLS, s uintptr, c int32, n, os Tsize_t) uintptr
|
|||
|
||||
// size_t __builtin_object_size (const void * ptr, int type)
|
||||
func X__builtin_object_size(t *TLS, p uintptr, typ int32) Tsize_t {
|
||||
return ^Tsize_t(0) //TODO frontend magic
|
||||
switch typ {
|
||||
case 0, 1:
|
||||
return ^Tsize_t(0)
|
||||
default:
|
||||
return 0
|
||||
}
|
||||
}
|
||||
|
||||
// int __builtin___sprintf_chk (char *s, int flag, size_t os, const char *fmt, ...);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue