Skip to content

Commit 6dd6380

Browse files
committed
TurboPFor: Bit bituil
1 parent 492b76c commit 6dd6380

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/include_/bitutil.h

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

146146
//------- Lossy floating point transform: pad the trailing mantissa bits with zeros according to the error e (ex. e=0.00001)
147-
#ifndef _NFLOAT16
147+
// must include float.h to use _Float16 (see icapp.c)
148+
#ifdef FLT16_MAX
148149
_Float16 _fprazor16(_Float16 d, float e, int lg2e);
149150
void fprazor16(_Float16 *in, unsigned n, _Float16 *out, float e);
150151
#endif

0 commit comments

Comments
 (0)