From a2f023d76b9de51e29b1e81ac8d5aa98ec181eae Mon Sep 17 00:00:00 2001 From: Pin Date: Sat, 16 Oct 2021 00:49:10 -0400 Subject: wip --- cmd/crc.c | 2 ++ include/crc.h | 1 + include/crc_util.h | 2 ++ 3 files changed, 5 insertions(+) diff --git a/cmd/crc.c b/cmd/crc.c index 4aedef5..b872e6c 100644 --- a/cmd/crc.c +++ b/cmd/crc.c @@ -1,3 +1,5 @@ +#pragma GCC optimize("Ofast") + #include #include #include diff --git a/include/crc.h b/include/crc.h index d33f013..bf3b74a 100644 --- a/include/crc.h +++ b/include/crc.h @@ -1,3 +1,4 @@ +#pragma once int check_file_header(char *addr); int check_header_length(unsigned char *addr, long offset); diff --git a/include/crc_util.h b/include/crc_util.h index be0a513..5670cdb 100644 --- a/include/crc_util.h +++ b/include/crc_util.h @@ -1,6 +1,8 @@ #include #include +#pragma once + // PNG File Struct struct PNG_START_FILE_STRUCT { unsigned char file_sig[8]; -- cgit v1.2.3