From 36fbdf402fa57ec0eda66b2b26fce85b44b68af0 Mon Sep 17 00:00:00 2001 From: kuntz <54650746+kun1z@users.noreply.github.com> Date: Fri, 29 Jan 2021 21:13:53 -0600 Subject: [PATCH] 10th stage test --- compress.c | 10 ++-------- compress.h | 17 +++++++++-------- 2 files changed, 11 insertions(+), 16 deletions(-) diff --git a/compress.c b/compress.c index f10ea95..9143fd1 100755 --- a/compress.c +++ b/compress.c @@ -2,17 +2,11 @@ // Copyright © 2021 by Brett Kuntz. All rights reserved. //---------------------------------------------------------------------------------------------------------------------- #include "compress.h" -#define CUTS_LENGTH 8 -static ui CHAIN_CUTS[CUTS_LENGTH] = { 37, 23, 17, 14, 11, 9, 8, -1 }; +#define CUTS_LENGTH 9 +static ui CHAIN_CUTS[CUTS_LENGTH] = { 37, 23, 17, 14, 11, 9, 8, 7, -1 }; //---------------------------------------------------------------------------------------------------------------------- -#include si main(si argc, s8 ** argv) { - if (SetPriorityClass(GetCurrentProcess(), IDLE_PRIORITY_CLASS)) - { - printf("Low priority set\n"); - } - if (sem_init(&csoutput, 1, 1) == -1) { printf("sem_init error\n"); diff --git a/compress.h b/compress.h index 768c98c..0f07cdc 100755 --- a/compress.h +++ b/compress.h @@ -20,14 +20,15 @@ typedef float r32 ; typedef double r64 ; #define halt do { fflush(0); while (1) sleep(-1); } while (0) #define cwait do { fflush(0); sleep(1); do errno = 0, wait(0); while (errno != ECHILD); sleep(1); } while(0) //---------------------------------------------------------------------------------------------------------------------- -// 2nd cut is 37 (p0.14453125) -// 3rd cut is 23 (p0.08984375) -// 4th cut is 17 (p0.06640625) -// 5th cut is 14 (p0.05468750) -// 6th cut is 11 (p0.04296875) -// 7th cut is 9 (p0.03515625) -// 8th cut is 8 (p0.03125000) -// 9th cut is ??? +// 2nd cut is 37 (p0.14453125) +// 3rd cut is 23 (p0.08984375) +// 4th cut is 17 (p0.06640625) +// 5th cut is 14 (p0.05468750) +// 6th cut is 11 (p0.04296875) +// 7th cut is 9 (p0.03515625) +// 8th cut is 8 (p0.03125000) +// 9th cut is 7 (p0.02734375) +// 10th cut is ??? #include #include #include