mirror of
https://github.com/cuberite/libdeflate.git
synced 2025-09-13 14:26:02 -04:00
Add lib_common.h
This commit is contained in:
parent
f649a4b8db
commit
f5f2a8f0cb
@ -5,7 +5,7 @@
|
|||||||
#ifndef _LIB_ADLER32_H
|
#ifndef _LIB_ADLER32_H
|
||||||
#define _LIB_ADLER32_H
|
#define _LIB_ADLER32_H
|
||||||
|
|
||||||
#include "common_defs.h"
|
#include "lib_common.h"
|
||||||
|
|
||||||
extern u32 adler32(const void *buffer, size_t size);
|
extern u32 adler32(const void *buffer, size_t size);
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
#ifndef _LIB_ALIGNED_MALLOC_H
|
#ifndef _LIB_ALIGNED_MALLOC_H
|
||||||
#define _LIB_ALIGNED_MALLOC_H
|
#define _LIB_ALIGNED_MALLOC_H
|
||||||
|
|
||||||
#include "common_defs.h"
|
#include "lib_common.h"
|
||||||
|
|
||||||
extern void *aligned_malloc(size_t alignment, size_t size);
|
extern void *aligned_malloc(size_t alignment, size_t size);
|
||||||
extern void aligned_free(void *ptr);
|
extern void aligned_free(void *ptr);
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
#ifndef _LIB_CRC32_H
|
#ifndef _LIB_CRC32_H
|
||||||
#define _LIB_CRC32_H
|
#define _LIB_CRC32_H
|
||||||
|
|
||||||
#include "common_defs.h"
|
#include "lib_common.h"
|
||||||
|
|
||||||
extern u32 crc32_gzip(const void *buffer, size_t size);
|
extern u32 crc32_gzip(const void *buffer, size_t size);
|
||||||
|
|
||||||
|
10
lib/lib_common.h
Normal file
10
lib/lib_common.h
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
/*
|
||||||
|
* lib_common.h - internal header included by all library code
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef _LIB_LIB_COMMON_H
|
||||||
|
#define _LIB_LIB_COMMON_H
|
||||||
|
|
||||||
|
#include "common_defs.h"
|
||||||
|
|
||||||
|
#endif /* _LIB_LIB_COMMON_H */
|
@ -5,7 +5,7 @@
|
|||||||
#ifndef _LIB_MATCHFINDER_COMMON_H
|
#ifndef _LIB_MATCHFINDER_COMMON_H
|
||||||
#define _LIB_MATCHFINDER_COMMON_H
|
#define _LIB_MATCHFINDER_COMMON_H
|
||||||
|
|
||||||
#include "common_defs.h"
|
#include "lib_common.h"
|
||||||
#include "unaligned.h"
|
#include "unaligned.h"
|
||||||
|
|
||||||
#ifndef MATCHFINDER_WINDOW_ORDER
|
#ifndef MATCHFINDER_WINDOW_ORDER
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
#ifndef LIB_UNALIGNED_H
|
#ifndef LIB_UNALIGNED_H
|
||||||
#define LIB_UNALIGNED_H
|
#define LIB_UNALIGNED_H
|
||||||
|
|
||||||
#include "common_defs.h"
|
#include "lib_common.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Naming note:
|
* Naming note:
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
#ifndef _LIB_X86_CPU_FEATURES_H
|
#ifndef _LIB_X86_CPU_FEATURES_H
|
||||||
#define _LIB_X86_CPU_FEATURES_H
|
#define _LIB_X86_CPU_FEATURES_H
|
||||||
|
|
||||||
#include "common_defs.h"
|
#include "lib_common.h"
|
||||||
|
|
||||||
#if defined(__x86_64__) && COMPILER_SUPPORTS_TARGET_FUNCTION_ATTRIBUTE
|
#if defined(__x86_64__) && COMPILER_SUPPORTS_TARGET_FUNCTION_ATTRIBUTE
|
||||||
# define X86_CPU_FEATURES_ENABLED 1
|
# define X86_CPU_FEATURES_ENABLED 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user