eqemu-server/libs/zlibng/insert_string.c
Alex 2957f5084d
[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
2021-02-23 19:00:26 -06:00

26 lines
841 B
C

/* 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"