]> git.ipfire.org Git - thirdparty/rsync.git/blobdiff - checksum.c
SSE2/SSSE3 optimized version of get_checksum1() for x86-64
[thirdparty/rsync.git] / checksum.c
index cd234038521b052fda015c955f8178a5ee43a050..8698543dc6426422dccaaf2abffef9572163eadf 100644 (file)
@@ -99,6 +99,7 @@ int canonical_checksum(int csum_type)
        return csum_type >= CSUM_MD4 ? 1 : 0;
 }
 
+#ifndef ENABLE_SSE2 /* See checksum_sse2.cpp for the SSE2 version. */
 /*
   a simple 32 bit checksum that can be updated from either end
   (inspired by Mark Adler's Adler-32 checksum)
@@ -119,6 +120,7 @@ uint32 get_checksum1(char *buf1, int32 len)
        }
        return (s1 & 0xffff) + (s2 << 16);
 }
+#endif
 
 void get_checksum2(char *buf, int32 len, char *sum)
 {