mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-09 15:57:28 -06:00
[chore]: Bump modernc.org/sqlite from 1.26.0 to 1.27.0 (#2339)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
parent
41435a6c4e
commit
28f85db30a
20 changed files with 526 additions and 143 deletions
24
vendor/modernc.org/libc/libc_amd64.go
generated
vendored
Normal file
24
vendor/modernc.org/libc/libc_amd64.go
generated
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
// Copyright 2023 The Libc Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package libc // import "modernc.org/libc"
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
// Byte loads are atomic on this CPU.
|
||||
func a_load_8(addr uintptr) uint32 {
|
||||
return uint32(*(*byte)(unsafe.Pointer(addr)))
|
||||
}
|
||||
|
||||
// int16 loads are atomic on this CPU when properly aligned.
|
||||
func a_load_16(addr uintptr) uint32 {
|
||||
if addr&1 != 0 {
|
||||
panic(fmt.Errorf("unaligned atomic 16 bit access at %#0x", addr))
|
||||
}
|
||||
|
||||
return uint32(*(*uint16)(unsafe.Pointer(addr)))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue