mirror of
https://github.com/opencv/opencv.git
synced 2024-12-11 22:59:16 +08:00
0de26fd78e
Zlib-ng is zlib replacement with optimizations for "next generation" systems. Its optimization may benifits image library decode and encode speed such as libpng. In our tests, if using zlib-ng and libpng combination on a x86_64 machine with AVX2, the time of `imdecode` amd `imencode` will drop 20% approximately. This patch enables zlib-ng's optimization if `CV_DISABLE_OPTIMIZATION` is OFF. Since Zlib-ng can dispatch intrinsics on the fly, port work is much easier. Related discussion: https://github.com/opencv/opencv/issues/22573
94 lines
2.5 KiB
Makefile
94 lines
2.5 KiB
Makefile
# Makefile for POWER-specific files
|
|
# Copyright (C) 2020 Matheus Castanho <msc@linux.ibm.com>, IBM
|
|
# Copyright (C) 2021 Mika T. Lindqvist <postmaster@raasu.org>
|
|
# For conditions of distribution and use, see copyright notice in zlib.h
|
|
|
|
CC=
|
|
CFLAGS=
|
|
SFLAGS=
|
|
INCLUDES=
|
|
SUFFIX=
|
|
|
|
P8FLAGS=-mcpu=power8
|
|
P9FLAGS=-mcpu=power9
|
|
PPCFLAGS=-maltivec
|
|
NOLTOFLAG=
|
|
|
|
SRCDIR=.
|
|
SRCTOP=../..
|
|
TOPDIR=$(SRCTOP)
|
|
|
|
all: power_features.o \
|
|
power_features.lo \
|
|
adler32_power8.o \
|
|
adler32_power8.lo \
|
|
adler32_vmx.o \
|
|
adler32_vmx.lo \
|
|
chunkset_power8.o \
|
|
chunkset_power8.lo \
|
|
compare256_power9.o \
|
|
compare256_power9.lo \
|
|
crc32_power8.o \
|
|
crc32_power8.lo \
|
|
slide_hash_power8.o \
|
|
slide_hash_power8.lo \
|
|
slide_hash_vmx.o \
|
|
slide_hash_vmx.lo
|
|
|
|
power_features.o:
|
|
$(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $(SRCDIR)/power_features.c
|
|
|
|
power_features.lo:
|
|
$(CC) $(SFLAGS) $(INCLUDES) -c -o $@ $(SRCDIR)/power_features.c
|
|
|
|
adler32_power8.o:
|
|
$(CC) $(CFLAGS) $(P8FLAGS) $(NOLTOFLAG) $(INCLUDES) -c -o $@ $(SRCDIR)/adler32_power8.c
|
|
|
|
adler32_power8.lo:
|
|
$(CC) $(SFLAGS) $(P8FLAGS) $(NOLTOFLAG) $(INCLUDES) -c -o $@ $(SRCDIR)/adler32_power8.c
|
|
|
|
adler32_vmx.o:
|
|
$(CC) $(CFLAGS) $(PPCFLAGS) $(NOLTOFLAG) $(INCLUDES) -c -o $@ $(SRCDIR)/adler32_vmx.c
|
|
|
|
adler32_vmx.lo:
|
|
$(CC) $(SFLAGS) $(PPCFLAGS) $(NOLTOFLAG) $(INCLUDES) -c -o $@ $(SRCDIR)/adler32_vmx.c
|
|
|
|
chunkset_power8.o:
|
|
$(CC) $(CFLAGS) $(P8FLAGS) $(NOLTOFLAG) $(INCLUDES) -c -o $@ $(SRCDIR)/chunkset_power8.c
|
|
|
|
chunkset_power8.lo:
|
|
$(CC) $(SFLAGS) $(P8FLAGS) $(NOLTOFLAG) $(INCLUDES) -c -o $@ $(SRCDIR)/chunkset_power8.c
|
|
|
|
compare256_power9.o:
|
|
$(CC) $(CFLAGS) $(P9FLAGS) $(NOLTOFLAG) $(INCLUDES) -c -o $@ $(SRCDIR)/compare256_power9.c
|
|
|
|
compare256_power9.lo:
|
|
$(CC) $(SFLAGS) $(P9FLAGS) $(NOLTOFLAG) $(INCLUDES) -c -o $@ $(SRCDIR)/compare256_power9.c
|
|
|
|
crc32_power8.o:
|
|
$(CC) $(CFLAGS) $(P8FLAGS) $(NOLTOFLAG) $(INCLUDES) -c -o $@ $(SRCDIR)/crc32_power8.c
|
|
|
|
crc32_power8.lo:
|
|
$(CC) $(SFLAGS) $(P8FLAGS) $(NOLTOFLAG) $(INCLUDES) -c -o $@ $(SRCDIR)/crc32_power8.c
|
|
|
|
slide_hash_power8.o:
|
|
$(CC) $(CFLAGS) $(P8FLAGS) $(NOLTOFLAG) $(INCLUDES) -c -o $@ $(SRCDIR)/slide_hash_power8.c
|
|
|
|
slide_hash_power8.lo:
|
|
$(CC) $(SFLAGS) $(P8FLAGS) $(NOLTOFLAG) $(INCLUDES) -c -o $@ $(SRCDIR)/slide_hash_power8.c
|
|
|
|
slide_hash_vmx.o:
|
|
$(CC) $(CFLAGS) ${PPCFLAGS} $(NOLTOFLAG) $(INCLUDES) -c -o $@ $(SRCDIR)/slide_hash_vmx.c
|
|
|
|
slide_hash_vmx.lo:
|
|
$(CC) $(SFLAGS) ${PPCFLAGS} $(NOLTOFLAG) $(INCLUDES) -c -o $@ $(SRCDIR)/slide_hash_vmx.c
|
|
|
|
mostlyclean: clean
|
|
clean:
|
|
rm -f *.o *.lo *~
|
|
rm -rf objs
|
|
rm -f *.gcda *.gcno *.gcov
|
|
|
|
distclean: clean
|
|
rm -f Makefile
|