Skip to content

Commit 78fb134

Browse files
committed
TurboRC: App
1 parent e42a1ea commit 78fb134

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

turborc.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,8 @@ unsigned bench(unsigned char *in, unsigned n, unsigned char *out, unsigned char
493493
#endif
494494
#ifdef _ANS
495495
#define ANSBLKSIZE (1<<21)
496+
case 54:if(m<16){TM("56:ans direct nibble ",l=_anscdf4enc( in,n,out,on,ANSBLKSIZE), n,l, _anscdf4dec( out,n,cpy,ANSBLKSIZE));}
497+
else {TM("56:ans direct ",l=_anscdfenc( in,n,out,on,ANSBLKSIZE), n,l, _anscdfdec( out,n,cpy,ANSBLKSIZE));} break;
496498
case 55:if(m<16){TM("56:ans auto nibble ",l=anscdf4enc( in,n,out,on,ANSBLKSIZE), n,l, anscdf4dec( out,n,cpy,ANSBLKSIZE));}
497499
else {TM("56:ans auto ",l=anscdfenc( in,n,out,on,ANSBLKSIZE), n,l, anscdfdec( out,n,cpy,ANSBLKSIZE));} break;
498500
//case 56:if(m<16){TM("56:ans scalar nibble ",l=anscdf4enc0( in,n,out,on,ANSBLKSIZE), n,l, anscdf4dec0( out,n,cpy,ANSBLKSIZE));}
@@ -795,8 +797,7 @@ int main(int argc, char* argv[]) {
795797
exit(0);
796798
}
797799
}
798-
anscdfini(0x20); // initialize sse (avx2 actually slower)
799-
if(verbose>1) printf("detected simd id=%x, %s\n\n", cpuini(0), cpustr(cpuini(0)));
800+
anscdfini(0); if(verbose>1) printf("detected simd id=%x, %s\n\n", cpuini(0), cpustr(cpuini(0)));
800801
tm_init(tm_Rep, tm_verbose /* 2 print id */);
801802
#define ERR(e) do { rc = e; printf("line=%d ", __LINE__); goto err; } while(0)
802803
size_t bsize = _bsize * Mb;

0 commit comments

Comments
 (0)