mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-03 05:16:37 +00:00
Zlib ng
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
/* functable.h -- Struct containing function pointers to optimized functions
|
||||
* Copyright (C) 2017 Hans Kristian Rosbach
|
||||
* For conditions of distribution and use, see copyright notice in zlib.h
|
||||
*/
|
||||
|
||||
#ifndef FUNCTABLE_H_
|
||||
#define FUNCTABLE_H_
|
||||
|
||||
#include "deflate.h"
|
||||
|
||||
struct functable_s {
|
||||
void (* fill_window) (deflate_state *s);
|
||||
Pos (* insert_string) (deflate_state *const s, const Pos str, unsigned int count);
|
||||
uint32_t (* adler32) (uint32_t adler, const unsigned char *buf, size_t len);
|
||||
uint32_t (* crc32) (uint32_t crc, const unsigned char *buf, uint64_t len);
|
||||
};
|
||||
|
||||
ZLIB_INTERNAL extern __thread struct functable_s functable;
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user