]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
remove -DX86
authorSebastian Pop <s.pop@samsung.com>
Wed, 2 Jan 2019 21:12:57 +0000 (15:12 -0600)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Thu, 24 Jan 2019 11:29:57 +0000 (12:29 +0100)
CMakeLists.txt
arch/x86/deflate_quick.c
configure

index 59d8185cfe90dd7a469e8fe8987b8bcd5dc4819c..67b1dc5f3c0ca1568b38849b33702ea83723b011 100644 (file)
@@ -493,7 +493,7 @@ elseif("${ARCH}" MATCHES "aarch64")
     add_definitions(-DUNALIGNED_OK)
 elseif("${ARCH}" MATCHES "i[3-6]86")
     set(ARCHDIR "arch/x86")
-    add_definitions(-DX86 -DUNALIGNED_OK)
+    add_definitions(-DUNALIGNED_OK)
     add_feature_info(SSE2 1 "Support the SSE2 instruction set, using \"${SSE2FLAG}\"")
 else()
     message(STATUS "No optimized architecture: using ${ARCHDIR}")
index 31118a46f3b60aaf75c92c490f637f5f7aa0d039..3f88736eb191f0e33d00a4fc399798340c9997c3 100644 (file)
@@ -92,11 +92,11 @@ static inline long compare258(const unsigned char *const src0, const unsigned ch
         "cmp        $256 + 16, %[ax]\n\t"
         "jb         1b\n\t"
 
-#ifdef X86
+# if !defined(__x86_64)
         "movzwl     -16(%[src0], %[ax]), %[dx]\n\t"
-#else
+# else
         "movzwq     -16(%[src0], %[ax]), %[dx]\n\t"
-#endif
+# endif
         "xorw       -16(%[src1], %[ax]), %%dx\n\t"
         "jnz        3f\n\t"
 
index 880bd1c2bc28b7574f5bafdd111de4ec90ed3e7d..24cfa98786f436231ea2e92ecdc13cf5bac1c415 100755 (executable)
--- a/configure
+++ b/configure
@@ -950,8 +950,8 @@ case "${ARCH}" in
     i386 | i486 | i586 | i686)
         ARCHDIR=arch/x86
 
-        CFLAGS="${CFLAGS} -DX86 -DUNALIGNED_OK"
-        SFLAGS="${SFLAGS} -DX86 -DUNALIGNED_OK"
+        CFLAGS="${CFLAGS} -DUNALIGNED_OK"
+        SFLAGS="${SFLAGS} -DUNALIGNED_OK"
 
         # Enable arch-specific optimizations?
         if test $without_optimizations -eq 0; then