mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-01 01:42:25 -05:00
[chore]: Bump modernc.org/sqlite from 1.28.0 to 1.29.2 (#2718)
This commit is contained in:
parent
ea0efb8094
commit
adb4cdcf6c
356 changed files with 2619858 additions and 1869411 deletions
14
vendor/modernc.org/libc/libc_amd64.go
generated
vendored
14
vendor/modernc.org/libc/libc_amd64.go
generated
vendored
|
|
@ -22,3 +22,17 @@ func a_load_16(addr uintptr) uint32 {
|
|||
|
||||
return uint32(*(*uint16)(unsafe.Pointer(addr)))
|
||||
}
|
||||
|
||||
// Byte sores are atomic on this CPU.
|
||||
func a_store_8(addr uintptr, b byte) {
|
||||
*(*byte)(unsafe.Pointer(addr)) = b
|
||||
}
|
||||
|
||||
// int16 stores are atomic on this CPU when properly aligned.
|
||||
func a_store_16(addr uintptr, n uint16) {
|
||||
if addr&1 != 0 {
|
||||
panic(fmt.Errorf("unaligned atomic 16 bit access at %#0x", addr))
|
||||
}
|
||||
|
||||
*(*uint16)(unsafe.Pointer(addr)) = n
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue