10th stage test
This commit is contained in:
parent
3e05fa06c5
commit
36fbdf402f
10
compress.c
10
compress.c
|
@ -2,17 +2,11 @@
|
||||||
// Copyright © 2021 by Brett Kuntz. All rights reserved.
|
// Copyright © 2021 by Brett Kuntz. All rights reserved.
|
||||||
//----------------------------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------------------------
|
||||||
#include "compress.h"
|
#include "compress.h"
|
||||||
#define CUTS_LENGTH 8
|
#define CUTS_LENGTH 9
|
||||||
static ui CHAIN_CUTS[CUTS_LENGTH] = { 37, 23, 17, 14, 11, 9, 8, -1 };
|
static ui CHAIN_CUTS[CUTS_LENGTH] = { 37, 23, 17, 14, 11, 9, 8, 7, -1 };
|
||||||
//----------------------------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------------------------
|
||||||
#include <windows.h>
|
|
||||||
si main(si argc, s8 ** argv)
|
si main(si argc, s8 ** argv)
|
||||||
{
|
{
|
||||||
if (SetPriorityClass(GetCurrentProcess(), IDLE_PRIORITY_CLASS))
|
|
||||||
{
|
|
||||||
printf("Low priority set\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (sem_init(&csoutput, 1, 1) == -1)
|
if (sem_init(&csoutput, 1, 1) == -1)
|
||||||
{
|
{
|
||||||
printf("sem_init error\n");
|
printf("sem_init error\n");
|
||||||
|
|
17
compress.h
17
compress.h
|
@ -20,14 +20,15 @@ typedef float r32 ; typedef double r64 ;
|
||||||
#define halt do { fflush(0); while (1) sleep(-1); } while (0)
|
#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)
|
#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)
|
// 2nd cut is 37 (p0.14453125)
|
||||||
// 3rd cut is 23 (p0.08984375)
|
// 3rd cut is 23 (p0.08984375)
|
||||||
// 4th cut is 17 (p0.06640625)
|
// 4th cut is 17 (p0.06640625)
|
||||||
// 5th cut is 14 (p0.05468750)
|
// 5th cut is 14 (p0.05468750)
|
||||||
// 6th cut is 11 (p0.04296875)
|
// 6th cut is 11 (p0.04296875)
|
||||||
// 7th cut is 9 (p0.03515625)
|
// 7th cut is 9 (p0.03515625)
|
||||||
// 8th cut is 8 (p0.03125000)
|
// 8th cut is 8 (p0.03125000)
|
||||||
// 9th cut is ???
|
// 9th cut is 7 (p0.02734375)
|
||||||
|
// 10th cut is ???
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
Loading…
Reference in New Issue