mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[chore] Update all but bun libraries (#526)
* update all but bun libraries Signed-off-by: kim <grufwub@gmail.com> * remove my personal build script changes Signed-off-by: kim <grufwub@gmail.com>
This commit is contained in:
8
vendor/github.com/ugorji/go/codec/decimal.go
generated
vendored
8
vendor/github.com/ugorji/go/codec/decimal.go
generated
vendored
@ -132,12 +132,20 @@ var fi64 = floatinfo{52, 22, 15, false, 1<<52 - 1}
|
||||
var fi64u = floatinfo{0, 19, 0, true, fUint64Cutoff}
|
||||
|
||||
func noFrac64(fbits uint64) bool {
|
||||
if fbits == 0 {
|
||||
return true
|
||||
}
|
||||
|
||||
exp := uint64(fbits>>52)&0x7FF - 1023 // uint(x>>shift)&mask - bias
|
||||
// clear top 12+e bits, the integer part; if the rest is 0, then no fraction.
|
||||
return exp < 52 && fbits<<(12+exp) == 0 // means there's no fractional part
|
||||
}
|
||||
|
||||
func noFrac32(fbits uint32) bool {
|
||||
if fbits == 0 {
|
||||
return true
|
||||
}
|
||||
|
||||
exp := uint32(fbits>>23)&0xFF - 127 // uint(x>>shift)&mask - bias
|
||||
// clear top 9+e bits, the integer part; if the rest is 0, then no fraction.
|
||||
return exp < 23 && fbits<<(9+exp) == 0 // means there's no fractional part
|
||||
|
Reference in New Issue
Block a user