bug fixes

This commit is contained in:
kuntz 2021-02-13 00:13:33 -06:00
parent f37b4dbfb9
commit 2cebf5b532
2 changed files with 12 additions and 4 deletions

View File

@ -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();

View File

@ -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);