TurboPFor: Bitutil

This commit is contained in:
x
2023-06-07 13:33:04 +02:00
parent 29e47ec1dc
commit 7db8562e8a

View File

@ -27,6 +27,9 @@
#pragma warning( disable : 4068)
#include <math.h> //nan
#define __STDC_WANT_IEC_60559_TYPES_EXT__
#include <float.h> //_Float16
#include "include_/conf.h"
#include "include_/bitutil.h"
@ -875,8 +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) ----------
#ifndef _NFLOAT16
#ifdef FLT16_MAX
// https://clang.llvm.org/docs/LanguageExtensions.html#half-precision-floating-point
_Float16 _fprazor16(_Float16 d, float e, int lg2e) {
uint16_t du = ctou16(&d), sign, u;