]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Remove unnecessary adler32_neon.h.
authorNathan Moinvaziri <nathan@nathanm.com>
Sat, 13 Jun 2020 03:28:58 +0000 (20:28 -0700)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Tue, 16 Jun 2020 14:48:02 +0000 (16:48 +0200)
CMakeLists.txt
arch/arm/adler32_neon.c
arch/arm/adler32_neon.h [deleted file]

index c4b056b037c7d546bb2a548a268d5ed8950da90a..80977229945491a31d92362fc5f72a6dd600b8eb 100644 (file)
@@ -669,7 +669,6 @@ if(WITH_OPTIM)
         list(APPEND ZLIB_ARCH_HDRS ${ARCHDIR}/arm.h)
         list(APPEND ZLIB_ARCH_SRCS ${ARCHDIR}/armfeature.c)
         if(WITH_NEON)
-            list(APPEND ZLIB_ARCH_HDRS ${ARCHDIR}/adler32_neon.h)
             list(APPEND ZLIB_ARCH_SRCS ${ARCHDIR}/adler32_neon.c ${ARCHDIR}/slide_neon.c)
             add_definitions(-DARM_NEON_ADLER32 -DARM_NEON_SLIDEHASH)
             add_intrinsics_option("${NEONFLAG}")
index b0bcd6ca1667bcc9d5542fda20b09f9d59df92c0..a6e87904f6594e629e631f3553114f1677005b63 100644 (file)
@@ -4,13 +4,13 @@
  *
  * For conditions of distribution and use, see copyright notice in zlib.h
  */
-#include "adler32_neon.h"
 #if defined(__ARM_NEON__) || defined(__ARM_NEON)
 #ifdef _M_ARM64
 #  include <arm64_neon.h>
 #else
 #  include <arm_neon.h>
 #endif
+#include "../../zutil.h"
 #include "../../adler32_p.h"
 
 static void NEON_accum32(uint32_t *s, const unsigned char *buf, size_t len) {
diff --git a/arch/arm/adler32_neon.h b/arch/arm/adler32_neon.h
deleted file mode 100644 (file)
index f13de95..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-/* Copyright (C) 1995-2011, 2016 Mark Adler
- * Copyright (C) 2017 ARM Holdings Inc.
- * Author: Adenilson Cavalcanti <adenilson.cavalcanti@arm.com>
- *
- * For conditions of distribution and use, see copyright notice in zlib.h
- */
-#ifndef __ADLER32_NEON__
-#define __ADLER32_NEON__
-
-#if defined(__ARM_NEON__) || defined(__ARM_NEON)
-// Depending on the compiler flavor, size_t may be defined in one or the other header. See:
-// http://stackoverflow.com/questions/26410466/gcc-linaro-compiler-throws-error-unknown-type-name-size-t
-#include <stdint.h>
-#include <stddef.h>
-uint32_t adler32_neon(uint32_t adler, const unsigned char *buf, size_t len);
-#endif
-#endif