Skip to content

Commit 5f75168

Browse files
committed
TurboPFor: Benchmark app
1 parent 7db8562 commit 5f75168

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/icapp.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@
4949
#include <dlfcn.h> // dlopen
5050
#endif
5151
#include <math.h> // pow,fabs
52-
#include <float.h>
5352

53+
#define __STDC_WANT_IEC_60559_TYPES_EXT__
54+
#include <float.h>
5455
#include "../include/ic.h"
5556
#include "include_/iccodec.h"
5657

@@ -816,7 +817,7 @@ void qcompini() {
816817
if(!(free_i64_ = (ffree_i64)GetProcAddress(hdll, "free_i64"))) die("free_i64 not found\n");
817818
} else fprintf(stderr,"q_compress_ffi.dll not found\n");
818819
}
819-
#else
820+
#elif !defined(_STATIC)
820821
{ char *qcomp = "./libq_compress_ffi.so";
821822
void *hdll = dlopen(qcomp, RTLD_LAZY);
822823
if(hdll) {
@@ -2285,8 +2286,6 @@ int main(int argc, char* argv[]) { //testrazor();
22852286
}
22862287
#ifndef _NFLOAT16
22872288
else if(isize == -2) { printf("Lossy compression float16\n");
2288-
//_Float16 *pf=in; for(i=0; i < 1000; i++) { float f = pf[i]; printf("%f,", f); }
2289-
//memcpy(out,in,n); fpstat(in, n/2, out, -2); exit(0);
22902289
fprazor16(in,n/2,out,errlim); if(verbose>0) fpstat(in, n/2, out, -2, NULL); /*if(nsd>=0) fprnd64(in,n/8,out,nsd); else*/
22912290
fprazor16(in,n/2, in,errlim); /*if(nsd>=0) fprnd64(in,n/8, in,nsd); else*/
22922291
}

0 commit comments

Comments
 (0)