mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-01 11:36:36 +00:00
[Library] Update zlibng (#1255)
* Update zlibng * Set cmake path more directly in zlibng to hopefully fix an issue with the build on drone * I'm dumb, missing / in path * Mackal helps with a dumb gitignore issue * Adding all the files, not sure what's ignoring them and im tired of looking * Some tweaks to zlibng build to hopefully get it to build properly. works on msvc now
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
/* insert_string_c -- insert_string variant for c
|
||||
*
|
||||
* Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler
|
||||
* For conditions of distribution and use, see copyright notice in zlib.h
|
||||
*
|
||||
*/
|
||||
|
||||
#include "zbuild.h"
|
||||
#include "deflate.h"
|
||||
|
||||
/* ===========================================================================
|
||||
* Update a hash value with the given input byte
|
||||
* IN assertion: all calls to to UPDATE_HASH are made with consecutive
|
||||
* input characters, so that a running hash key can be computed from the
|
||||
* previous key instead of complete recalculation each time.
|
||||
*/
|
||||
#define HASH_SLIDE 16 // Number of bits to slide hash
|
||||
|
||||
#define UPDATE_HASH(s, h, val) \
|
||||
h = ((val * 2654435761U) >> HASH_SLIDE);
|
||||
|
||||
#define INSERT_STRING insert_string_c
|
||||
#define QUICK_INSERT_STRING quick_insert_string_c
|
||||
|
||||
#include "insert_string_tpl.h"
|
||||
Reference in New Issue
Block a user