Updated Makefile : make dist
authorYann Collet <yann.collet.73@gmail.com>
Wed, 6 Aug 2014 07:55:08 +0000 (08:55 +0100)
committerYann Collet <yann.collet.73@gmail.com>
Wed, 6 Aug 2014 07:55:08 +0000 (08:55 +0100)
Minor formatting changes for xxhash

Makefile
programs/xxhash.c
programs/xxhash.h

index 23251e0..ebbe44d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -33,9 +33,9 @@
 # Version numbers
 VERSION=121
 export RELEASE=r$(VERSION)
-LIBVER_MAJOR=`sed -n '/define LZ4_VERSION_MAJOR/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < lz4.h`
-LIBVER_MINOR=`sed -n '/define LZ4_VERSION_MINOR/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < lz4.h`
-LIBVER_PATCH=`sed -n '/define LZ4_VERSION_RELEASE/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < lz4.h`
+LIBVER_MAJOR=`sed -n '/LZ4_VERSION_MAJOR/s/.*\s\+\([0-9]\+\).*/\1/p' < lz4.h`
+LIBVER_MINOR=`sed -n '/LZ4_VERSION_MINOR/s/.*\s\+\([0-9]\+\).*/\1/p' < lz4.h`
+LIBVER_PATCH=`sed -n '/LZ4_VERSION_RELEASE/s/.*\s\+\([0-9]\+\).*/\1/p' < lz4.h`
 LIBVER=$(LIBVER_MAJOR).$(LIBVER_MINOR).$(LIBVER_PATCH)
 
 DESTDIR=
@@ -72,9 +72,11 @@ else
 endif
 
 TEXT = lz4.c lz4.h lz4hc.c lz4hc.h \
-       lz4_format_description.txt Makefile NEWS LICENSE README.md \
+       liblz4.pc.in Makefile \
+       lz4_format_description.txt NEWS LICENSE README.md \
        cmake_unofficial/CMakeLists.txt \
-       $(PRGDIR)/fullbench.c $(PRGDIR)/fuzzer.c $(PRGDIR)/lz4cli.c \
+       $(PRGDIR)/fullbench.c $(PRGDIR)/lz4cli.c \
+       $(PRGDIR)/datagen.c $(PRGDIR)/fuzzer.c \
        $(PRGDIR)/lz4io.c $(PRGDIR)/lz4io.h \
        $(PRGDIR)/bench.c $(PRGDIR)/bench.h \
        $(PRGDIR)/xxhash.c $(PRGDIR)/xxhash.h \
index 99bbe7c..a9925fc 100644 (file)
@@ -374,8 +374,6 @@ FORCE_INLINE U64 XXH64_endian_align(const void* input, unsigned int len, U64 see
        p+=8;\r
     }\r
 
-#if 1
-
     if (p<=bEnd-4)\r
     {\r
        h64 ^= (U64)(XXH_get32bits(p)) * PRIME64_1;\r
@@ -390,30 +388,6 @@ FORCE_INLINE U64 XXH64_endian_align(const void* input, unsigned int len, U64 see
         p++;
     }
 \r
-#else
-
-    if( p<bEnd )
-    {
-        // Copy the remaining bytes
-        U64 k1 = PRIME64_5;
-        BYTE* _k1 = (BYTE*)&k1;
-        switch( (size_t)(bEnd-p))  // Yes, I tried multiple ways of doing this memcopy
-        {
-        case 7:        *_k1++ = *p++;
-        case 6:        *_k1++ = *p++;
-        case 5:        *_k1++ = *p++;
-        case 4:        *_k1++ = *p++;
-        case 3:        *_k1++ = *p++;
-        case 2:        *_k1++ = *p++;
-        case 1:        *_k1++ = *p++;
-        }
-
-        k1 *= PRIME64_5; k1 = XXH_rotl64(k1,31); k1 *= PRIME64_3; h64 ^= k1;
-        h64 = XXH_rotl64(h64, 11) * PRIME64_1 + PRIME64_4;
-    }
-
-#endif
-\r
     h64 ^= h64 >> 33;\r
     h64 *= PRIME64_2;\r
     h64 ^= h64 >> 29;\r
index 8271807..a7516ff 100644 (file)
@@ -155,7 +155,7 @@ use the structure XXHnn_stateSpace_t, which will ensure that memory space is lar
 unsigned int       XXH32_intermediateDigest (void* state);\r
 unsigned long long XXH64_intermediateDigest (void* state);\r
 /*\r
-This function does the same as XXHnn_digest(), generating a nn-bit hash,\r
+These functions do the same as XXHnn_digest(), generating a nn-bit hash,\r
 but preserve memory context.\r
 This way, it becomes possible to generate intermediate hashes, and then continue feeding data with XXHnn_update().\r
 To free memory context, use XXHnn_digest(), or free().\r