Skip to content

Commit 492b76c

Browse files
committed
TurboPFor: Integer Compression c/c++ header
1 parent 2a3b09d commit 492b76c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/ic.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,8 @@ void bitzdec(unsigned char *in, unsigned n, unsigned esize);
538538
#define INT2FLOAT(ival, scalse, bias) ((ival - bias) / scale)
539539

540540
//------- Lossy floating point transform: pad the trailing mantissa bits with zeros according to the error e (ex. e=0.00001)
541-
#ifdef USE_FLOAT16
541+
// must include float.h to use _Float16 (see icapp.c)
542+
#ifdef FLT16_MAX
542543
_Float16 _fprazor16(_Float16 d, float e, int lg2e);
543544
void fprazor16(_Float16 *in, unsigned n, _Float16 *out, float e);
544545
#endif

0 commit comments

Comments
 (0)