Skip to content

Commit

Permalink
xxh32sum & xxh64sum
Browse files Browse the repository at this point in the history
enabled short latency versions
  • Loading branch information
Cyan4973 committed Sep 25, 2014
1 parent 128a34c commit 5176062
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ all: xxhsum xxhsum32

xxhsum: xxhash.c bench.c
$(CC) $(CFLAGS) $^ -o $@$(EXT)
# ln -sf $@ xxh32sum
# ln -sf $@ xxh64sum
ln -sf $@ xxh32sum
ln -sf $@ xxh64sum

xxhsum32: xxhash.c bench.c
$(CC) -m32 $(CFLAGS) $^ -o $@$(EXT)
Expand Down
2 changes: 1 addition & 1 deletion bench.c
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ int main(int argc, char** argv)
if (argc<2) return badusage(argv[0]);

// lz4cat behavior
if (!strcmp(argv[0], "xxh32sum")) fn_selection=0;
if (strstr(argv[0], "xxh32sum")!=NULL) fn_selection=0;

for(i=1; i<argc; i++)
{
Expand Down
4 changes: 2 additions & 2 deletions xxhash.c
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ FORCE_INLINE U32 XXH32_endian_align(const void* input, size_t len, U32 seed, XXH

unsigned int XXH32 (const void* input, size_t len, unsigned seed)
{
#if 1
#if 0
// Simple version, good for code maintenance, but unfortunately slow for small inputs
XXH32_state_t state;
XXH32_reset(&state, seed);
Expand Down Expand Up @@ -475,7 +475,7 @@ FORCE_INLINE U64 XXH64_endian_align(const void* input, size_t len, U64 seed, XXH

unsigned long long XXH64 (const void* input, size_t len, unsigned long long seed)
{
#if 1
#if 0
// Simple version, good for code maintenance, but unfortunately slow for small inputs
XXH64_state_t state;
XXH64_reset(&state, seed);
Expand Down

0 comments on commit 5176062

Please sign in to comment.