faster crc32 by doing slicing-by-4

This commit is contained in:
Martins Mozeiko
2017-10-31 21:05:38 -07:00
parent da6bab7c4c
commit 4e223448de
6 changed files with 217 additions and 57 deletions
+2
View File
@@ -1,6 +1,7 @@
#pragma once
#include "pkg2zip_sys.h"
#include "pkg2zip_crc32.h"
#include <stddef.h>
#include <stdint.h>
@@ -16,6 +17,7 @@ typedef struct {
uint32_t max;
uint16_t time;
uint16_t date;
crc32_ctx crc32;
uint32_t allocated; // bytes
zip_file* files;
zip_file* current;