Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added tests/dat/entropy4.gz
Binary file not shown.
6 changes: 4 additions & 2 deletions tests/entropy.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,12 @@ int main(int argc, char **argv) {
int order = order_a[i];
uint8_t *comp, *uncomp;
for (j = 0; j < 4; j++) {
int chigh = 4, clow = 0, c;
int chigh = 16, clow = 0, c;
uint8_t *comp0 = NULL;
uint32_t csize0 = 0;
for (c = 0; c < 4; c+=(j==2)?1:4) {
// We only have 5 to test, but an odd number means -c 0x0202 which
// doesn't cross-validate with other codec implementations.
for (c = 0; c < 6; c+=(j==2)?1:8) {
struct timeval tv1, tv2, tv3, tv4;

// Test combinations of SIMD implementations
Expand Down
4 changes: 2 additions & 2 deletions tests/entropy.test
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# One copy tests the small buffer histogram variant
./entropy $srcdir/dat/q4

# Four copies tests the large buffer histogram variant
cat $srcdir/dat/q4 $srcdir/dat/q4 $srcdir/dat/q4 $srcdir/dat/q4 | ./entropy
# Large buffer testing
gzcat $srcdir/dat/entropy4.gz | (ulimit -s 128; ./entropy)
Loading