fix auth; update deps

This commit is contained in:
Aine
2024-07-03 12:21:47 +03:00
parent f91691bc7c
commit bf89b8fe1b
158 changed files with 356825 additions and 167987 deletions

View File

@@ -2070,41 +2070,6 @@ func Xnanf(tls *TLS, s uintptr) float32 { /* nanf.c:3:7: */
}
return X__builtin_nanf(tls, ts+13)
}
var toint double_t = float64(float64(1)) / 2.22044604925031308085e-16 /* rint.c:10:23 */
func Xrint(tls *TLS, x float64) float64 { /* rint.c:12:8: */
if __ccgo_strace {
trc("tls=%v x=%v, (%v:)", tls, x, origin(2))
}
bp := tls.Alloc(8)
defer tls.Free(8)
*(*struct{ f float64 })(unsafe.Pointer(bp)) = func() (r struct{ f float64 }) {
*(*float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = x
return r
}()
var e int32 = int32(*(*uint64_t)(unsafe.Pointer(bp)) >> 52 & uint64(0x7ff))
var s int32 = int32(*(*uint64_t)(unsafe.Pointer(bp)) >> 63)
var y double_t
if e >= 0x3ff+52 {
return x
}
if s != 0 {
y = x - toint + toint
} else {
y = x + toint - toint
}
if y == float64(0) {
if s != 0 {
return -Float64FromFloat64(0.0)
}
return float64(0)
}
return y
}
func Xscalbn(tls *TLS, x float64, n int32) float64 { /* scalbn.c:4:8: */
if __ccgo_strace {
trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2))