Loading...
Searching...
No Matches
Go to the documentation of this file.
24#ifndef ZSTD_DEPS_COMMON
25#define ZSTD_DEPS_COMMON
31#if defined(__GNUC__) && __GNUC__ >= 4
32# define ZSTD_memcpy(d,s,l) __builtin_memcpy((d),(s),(l))
33# define ZSTD_memmove(d,s,l) __builtin_memmove((d),(s),(l))
34# define ZSTD_memset(p,v,l) __builtin_memset((p),(v),(l))
36# define ZSTD_memcpy(d,s,l) memcpy((d),(s),(l))
37# define ZSTD_memmove(d,s,l) memmove((d),(s),(l))
38# define ZSTD_memset(p,v,l) memset((p),(v),(l))
48#ifdef ZSTD_DEPS_NEED_MALLOC
49#ifndef ZSTD_DEPS_MALLOC
50#define ZSTD_DEPS_MALLOC
54#define ZSTD_malloc(s) malloc(s)
55#define ZSTD_calloc(n,s) calloc((n), (s))
56#define ZSTD_free(p) free((p))
66#ifdef ZSTD_DEPS_NEED_MATH64
67#ifndef ZSTD_DEPS_MATH64
68#define ZSTD_DEPS_MATH64
70#define ZSTD_div64(dividend, divisor) ((dividend) / (divisor))
78#ifdef ZSTD_DEPS_NEED_ASSERT
79#ifndef ZSTD_DEPS_ASSERT
80#define ZSTD_DEPS_ASSERT
90#ifdef ZSTD_DEPS_NEED_IO
95#define ZSTD_DEBUG_PRINT(...) fprintf(stderr, __VA_ARGS__)
104#ifdef ZSTD_DEPS_NEED_STDINT
105#ifndef ZSTD_DEPS_STDINT
106#define ZSTD_DEPS_STDINT