summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPin <wf6DJd8a3xSSCZbn@protonmail.com>2021-10-16 00:49:10 -0400
committerPin <wf6DJd8a3xSSCZbn@protonmail.com>2021-10-16 00:49:10 -0400
commita2f023d76b9de51e29b1e81ac8d5aa98ec181eae (patch)
treee0da9aeb2df72424caf5fb2dd42d3c2edcfa7bc6
parent677c34d3677714a768c933b0861c4e3e54ba3c6f (diff)
-rw-r--r--cmd/crc.c2
-rw-r--r--include/crc.h1
-rw-r--r--include/crc_util.h2
3 files changed, 5 insertions, 0 deletions
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 <endian.h>
#include <stdio.h>
#include <unistd.h>
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 <stdio.h>
#include <stdint.h>
+#pragma once
+
// PNG File Struct
struct PNG_START_FILE_STRUCT {
unsigned char file_sig[8];