to be used externally.
+++ /dev/null
-# Makefile for zlib
-# Copyright (C) 1995-2013 Jean-loup Gailly, Mark Adler
-# For conditions of distribution and use, see copyright notice in zlib.h
-
-all: x86.o x86.lo
-
-x86.o:
- gcc -O3 -I. -c -o $@x86.c
-
-x86.lo:
- -@mkdir objs 2>/dev/null || test -d objs
- gcc -O3 -I. -c -o $@ x86.c
- -@mv objs/$*.o $@
-
-mostlyclean: clean
-clean:
- rm -f *.o *.lo *~ \
- rm -rf objs
- rm -f *.gcda *.gcno *.gcov
$(CC) $(CFLAGS) -I. -I../../ -c -o $@ x86.c
x86.lo:
- $(CC) $(CFLAGS) -fPIC -I. -I../../ -c -o $@ x86.c
+ $(CC) $(CFLAGS) -I. -I../../ -c -o $@ x86.c
fill_window_sse.o:
$(CC) $(CFLAGS) -msse2 -I. -I../../ -c -o $@ fill_window_sse.c
return ret;
}
-block_state deflate_quick(deflate_state *s, int flush)
+ZLIB_INTERNAL block_state deflate_quick(deflate_state *s, int flush)
{
IPos hash_head;
unsigned dist, match_len;
extern int read_buf (z_streamp strm, Bytef *buf, unsigned size);
-void fill_window_sse(deflate_state *s)
+ZLIB_INTERNAL void fill_window_sse(deflate_state *s)
{
z_const __m128i xmm_wsize = _mm_set1_epi16(s->w_size);
#include "x86.h"
-int x86_cpu_has_sse2;
-int x86_cpu_has_sse42;
-int x86_cpu_has_pclmulqdq;
+ZLIB_INTERNAL int x86_cpu_has_sse2;
+ZLIB_INTERNAL int x86_cpu_has_sse42;
+ZLIB_INTERNAL int x86_cpu_has_pclmulqdq;
-void x86_check_features(void)
+void ZLIB_INTERNAL x86_check_features(void)
{
unsigned eax, ebx, ecx, edx;
#ifndef CPU_H
#define CPU_H
+#define ZLIB_INTERNAL __attribute__((visibility ("hidden")))
+
extern int x86_cpu_has_sse2;
extern int x86_cpu_has_sse42;
extern int x86_cpu_has_pclmulqdq;
-void x86_check_features(void);
+void ZLIB_INTERNAL x86_check_features(void);
#endif