bug fixes
This commit is contained in:
parent
f37b4dbfb9
commit
2cebf5b532
13
compress4.c
13
compress4.c
|
@ -2,8 +2,6 @@
|
|||
// Copyright © 2021 by Brett Kuntz. All rights reserved.
|
||||
//----------------------------------------------------------------------------------------------------------------------
|
||||
#include "compress4.h"
|
||||
#define CUTS_LENGTH 5
|
||||
static ui CHAIN_CUTS[CUTS_LENGTH] = { 37, 23, 17, 14, 11 };
|
||||
//----------------------------------------------------------------------------------------------------------------------
|
||||
//#include <windows.h>
|
||||
si main(si argc, s8 ** argv)
|
||||
|
@ -31,9 +29,12 @@ si main(si argc, s8 ** argv)
|
|||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
const ui CUTOFF = atol(argv[1]);
|
||||
CUTOFF = atol(argv[1]);
|
||||
const ul SAMPLES = atol(argv[2]);
|
||||
|
||||
//CUTOFF = 9;
|
||||
//const ul SAMPLES = 100000;
|
||||
|
||||
// Start
|
||||
printf("Starting\n");
|
||||
|
||||
|
@ -89,6 +90,12 @@ static void check(void)
|
|||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
if (!CUTOFF || CUTOFF > 100)
|
||||
{
|
||||
printf("CUTOFF error\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
u64 total = 0;
|
||||
|
||||
const u64 start = tick();
|
||||
|
|
|
@ -35,7 +35,8 @@ typedef float r32 ; typedef double r64 ;
|
|||
#include <sys/wait.h>
|
||||
#include <sys/mman.h>
|
||||
//----------------------------------------------------------------------------------------------------------------------
|
||||
static ui CUTOFF;
|
||||
#define CUTS_LENGTH 5
|
||||
static ui CHAIN_CUTS[CUTS_LENGTH] = { 37, 23, 17, 14, 11 }, CUTOFF;
|
||||
static u64 * global_total, SAMPLES_PER_TEST;
|
||||
static sem_t csoutput;
|
||||
static const u64 BLAKE_IV = UINT64_C(0xA54FF53A5F1D36F1);
|
||||
|
|
Loading…
Reference in New Issue