diff options
author | Yann Collet <Cyan4973@users.noreply.github.com> | 2018-04-27 18:46:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-27 18:46:29 (GMT) |
commit | 47d70e755e67d187da43ffe14d5ce47bf1ff04de (patch) | |
tree | fd3e0f88e274e98ce7e61a5db14c25bb880e831d /lib/lz4.c | |
parent | 938e4849ae3bb33665aeee2647aa3e2077af0b5a (diff) | |
parent | d294dd7fc684b1f46130358ff5c218e835082b16 (diff) | |
download | lz4-47d70e755e67d187da43ffe14d5ce47bf1ff04de.zip lz4-47d70e755e67d187da43ffe14d5ce47bf1ff04de.tar.gz lz4-47d70e755e67d187da43ffe14d5ce47bf1ff04de.tar.bz2 |
Merge pull request #519 from lz4/fdParser
Faster decoding speed
Diffstat (limited to 'lib/lz4.c')
-rw-r--r-- | lib/lz4.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -161,11 +161,11 @@ * Memory routines **************************************/ #include <stdlib.h> /* malloc, calloc, free */ -#define ALLOC(s) malloc(s) +#define ALLOC(s) malloc(s) #define ALLOC_AND_ZERO(s) calloc(1,s) -#define FREEMEM free +#define FREEMEM(p) free(p) #include <string.h> /* memset, memcpy */ -#define MEM_INIT memset +#define MEM_INIT(p,v,s) memset((p),(v),(s)) /*-************************************ |