TurboPFor: Bitutil

This commit is contained in:
x
2023-06-07 15:13:11 +02:00
parent 7d2165bab5
commit bb061a42c5

View File

@ -878,7 +878,7 @@ void bitzdec(unsigned char *in, unsigned n, unsigned esize) {
} }
//----------- Lossy floating point conversion: pad the trailing mantissa bits with zero bits according to the relative error e (ex. 0.00001) ---------- //----------- Lossy floating point conversion: pad the trailing mantissa bits with zero bits according to the relative error e (ex. 0.00001) ----------
#if defined(FLT16_MAX) #if defined(FLT16_BUILTIN)
// https://clang.llvm.org/docs/LanguageExtensions.html#half-precision-floating-point // https://clang.llvm.org/docs/LanguageExtensions.html#half-precision-floating-point
_Float16 _fprazor16(_Float16 d, float e, int lg2e) { _Float16 _fprazor16(_Float16 d, float e, int lg2e) {
uint16_t du = ctou16(&d), sign, u; uint16_t du = ctou16(&d), sign, u;