lib: rename aligned_malloc.c to utils.c

Prepare to use this file for more utility functions.
This commit is contained in:
Eric Biggers 2020-04-02 23:49:00 -07:00
parent d1b6a825ab
commit 64b4e8191e
3 changed files with 3 additions and 11 deletions

View File

@ -132,7 +132,7 @@ LIB_CFLAGS += $(CFLAGS) -fvisibility=hidden -D_ANSI_SOURCE
LIB_HEADERS := $(wildcard lib/*.h) $(wildcard lib/*/*.h)
LIB_SRC := lib/aligned_malloc.c lib/deflate_decompress.c \
LIB_SRC := lib/deflate_decompress.c lib/utils.c \
$(wildcard lib/*/cpu_features.c)
DECOMPRESSION_ONLY :=

View File

@ -18,13 +18,13 @@ SHARED_LIB = libdeflate.dll
IMPORT_LIB = libdeflate.lib
STATIC_LIB_OBJ = \
lib/aligned_malloc.obj \
lib/adler32.obj \
lib/crc32.obj \
lib/deflate_compress.obj \
lib/deflate_decompress.obj \
lib/gzip_compress.obj \
lib/gzip_decompress.obj \
lib/utils.obj \
lib/x86/cpu_features.obj \
lib/zlib_compress.obj \
lib/zlib_decompress.obj

View File

@ -1,7 +1,5 @@
/*
* aligned_malloc.c - aligned memory allocation
*
* Originally public domain; changes after 2016-09-07 are copyrighted.
* utils.c - utility functions for libdeflate
*
* Copyright 2016 Eric Biggers
*
@ -27,12 +25,6 @@
* OTHER DEALINGS IN THE SOFTWARE.
*/
/*
* This file provides portable aligned memory allocation functions that only
* use malloc() and free(). This avoids portability problems with
* posix_memalign(), aligned_alloc(), etc.
*/
#include <stdlib.h>
#include "lib_common.h"