Commit Graph

595 Commits

Author SHA1 Message Date
Yann Collet
9ae604f15f Fix issue 23 : xxhsum output to stdout 2014-10-18 12:15:13 +01:00
Yann Collet
0093c7ac0e Fix issue 22 : use XXH_malloc() & XXH_free() 2014-10-18 12:10:27 +01:00
Yann Collet
f3f6e3301c tune xxhsum display messages 2014-10-18 12:03:38 +01:00
Yann Collet
9e10157ef3 renamed bench.c into xxhsum.c 2014-10-18 11:46:37 +01:00
Yann Collet
d54caef131 Merge pull request #8 from Cyan4973/dev
Dev
2014-10-03 12:01:49 +02:00
Yann Collet
cc124e4c3d Merge pull request #7 from Cyan4973/updatedAPI
Updated api
2014-09-30 21:34:47 +02:00
Yann Collet
ed990f43eb _digest uses const* type (doesn't modify state) 2014-09-27 12:41:07 +01:00
Yann Collet
5176062578 xxh32sum & xxh64sum
enabled short latency versions
2014-09-25 21:53:18 +01:00
Yann Collet
128a34ccac Moved to xxhsum 2014-09-25 21:22:59 +01:00
Yann Collet
2d6da418a0 new xxHash API (breaking changes) 2014-09-25 17:30:15 +01:00
Yann Collet
d0d992cc55 Fixed crlf issue 2014-08-15 11:27:04 +02:00
Cyan4973
3332e5d434 Merge pull request #5 from Cyan4973/dev
Dev
2014-08-15 11:06:41 +02:00
Yann Collet
1cdcb5d10e unix-style eol 2014-08-13 17:27:38 +01:00
Yann Collet
ee3a7931cc Clarified branch policy 2014-08-13 16:52:19 +01:00
Yann Collet
c36e42ce47 Updated comment, to reflect change into XXHnn_init() 2014-08-13 02:26:09 +01:00
Cyan4973
962c515f87 Merge pull request #4 from sfgagnon/patch-1
Memory allocation validation
2014-08-13 03:18:17 +02:00
Stephane Gagnon
f85bfd7f8d Memory allocation validation
malloc is used to allocate the state structure, but XXHxx_resetState() uses the allocated buffer without checking if allocation was successful.
User can then check for NULL pointer to validate that XXHxx_init was successful without a core dump.

thank you.
2014-08-11 23:29:19 -04:00
Yann Collet
ccd8a4253f Added : .gitattributes 2014-08-06 20:34:53 +01:00
Yann Collet
d4c6af7ef1 Added : null length support even for invalid pointers
Added : test : null length input on invalid pointers
2014-08-06 20:33:58 +01:00
Yann Collet
c4de51307f minor formatting changes 2014-08-06 09:11:52 +01:00
Cyan4973
fa48fc2f4a Merge pull request #3 from Cyan4973/dev
Dev
2014-07-19 11:05:20 +02:00
Cyan4973
59d6f69e79 Merge pull request #2 from t-mat/dev
Fix Travis CI URLs
2014-07-18 10:18:53 +02:00
Takayuki MATSUOKA
d1886fe41e Fix Travis CI URLs
- Fix badge image URL
 - Fix branch status URL
2014-07-17 20:05:37 +09:00
Cyan4973
fb3a75cfa1 Merge pull request #1 from Cyan4973/dev
Dev
2014-07-16 13:55:36 +02:00
Yann Collet
7a0ba00df8 Makefile : added -Wstrict-prototype 2014-07-15 18:37:36 +01:00
Yann Collet
26c55b1ab5 UI : minor : tester indicates 32/64 bits mode 2014-07-14 19:49:45 +01:00
Yann Collet
8d9171e957 updated : siphash results 2014-07-14 19:28:30 +01:00
Yann Collet
e551459538 Fixed : issue 18 (null input pointer)
Changed : API : length uses unsigned int
2014-07-14 16:54:56 +01:00
Yann Collet
f0f007f042 Added : Travis automated tests
and license
and readme
2014-07-10 22:44:08 +02:00
Yann Collet
70ba044ded New : XXH64, 64-bits version, thanks to Mathias Westerdahl 2014-07-10 08:28:57 +01:00
yann.collet.73@gmail.com
b22de6c9be Issue 17 : strict prototype definition for XXH32_sizeofState()
git-svn-id: https://xxhash.googlecode.com/svn/trunk@34 a90a0800-428d-89a3-ac20-94765a7798ee
2014-03-09 23:53:42 +00:00
yann.collet.73@gmail.com
7c14a40411 Corrected : aligned input detection on strict-align CPU (issue 15)
git-svn-id: https://xxhash.googlecode.com/svn/trunk@33 a90a0800-428d-89a3-ac20-94765a7798ee
2013-12-05 22:47:05 +00:00
yann.collet.73@gmail.com
6d95829a7b Corrected a bug in the compact version of XXH32. Thanks Adrien Grand for detecting it. Update is recommended.
Bench.c now also checks results integrity as part of starting sequence.

git-svn-id: https://xxhash.googlecode.com/svn/trunk@32 a90a0800-428d-89a3-ac20-94765a7798ee
2013-08-07 14:34:28 +00:00
yann.collet.73@gmail.com
99a867a14a Runtime endianess detection
removed typecast warnings for 64-bits CPU with aligned-only memory accesses
made bench.c compatible with tcc
small bench.c optimisation, reducing impact of timer calls 


git-svn-id: https://xxhash.googlecode.com/svn/trunk@31 a90a0800-428d-89a3-ac20-94765a7798ee
2013-07-25 08:40:23 +00:00
yann.collet.73@gmail.com
681ea2aad6 Support non-aligned input on strict-align CPU systems, as requested by Gregory Pakosz
Type XXH32_stateSpace_t, for static allocation ( typically for stack allocation, or freestanding systems). Suggested by Christoph Cullmann and Takayuki Matsuoka
User definable memory-related functions (malloc, free, memcpy)
Changed enum OK into XXH_OK
Restricted intrinsic _rotl to MSVC, due to poor performance under minGW

git-svn-id: https://xxhash.googlecode.com/svn/trunk@30 a90a0800-428d-89a3-ac20-94765a7798ee
2013-06-04 12:01:50 +00:00
yann.collet.73@gmail.com
107fd8f2a6 Corrected : compatibility with older GCC versions, reported by Vasiliy Ermolovich.
git-svn-id: https://xxhash.googlecode.com/svn/trunk@29 a90a0800-428d-89a3-ac20-94765a7798ee
2013-05-16 07:07:10 +00:00
yann.collet.73@gmail.com
56314ee122 New functions XXH32_sizeofState() and XXH32_resetState(), for external allocation. Thanks to Takayuki Matsuoka for suggestion.
Slightly improved speed of XXH32_update()
New mode XXH_ACCEPT_NULL_INPUT_POINTER (as a #define), suggested by Brian White and Thomas Kaiser.
Added : Makefile, for GCC
Modified Basic Types and C99 detection.

git-svn-id: https://xxhash.googlecode.com/svn/trunk@28 a90a0800-428d-89a3-ac20-94765a7798ee
2013-05-11 11:22:55 +00:00
yann.collet.73@gmail.com
70e65c925a re-enabled fast version of XXH32()
git-svn-id: https://xxhash.googlecode.com/svn/trunk@11 a90a0800-428d-89a3-ac20-94765a7798ee
2013-04-17 23:15:37 +00:00
yann.collet.73@gmail.com
ca59c9d11f Modified function names
Added null-pointer check to update()
Removed a few warnings

git-svn-id: https://xxhash.googlecode.com/svn/trunk@7 a90a0800-428d-89a3-ac20-94765a7798ee
2013-04-12 08:24:54 +00:00
yann.collet.73@gmail.com
e3fca4f187 Corrected : issue with providing a wrong hash for input of size between 4GB+1 et 4GB+15 bytes
Corrected : macro to define hardware 32-bits swap with GCC
Thanks to Adrien Grand for both issues raised.

git-svn-id: https://xxhash.googlecode.com/svn/trunk@6 a90a0800-428d-89a3-ac20-94765a7798ee
2012-12-18 16:57:42 +00:00
yann.collet.73@gmail.com
ad2c867c87 - Added : Endian-independant result
- Added : Get intermediate hashes

git-svn-id: https://xxhash.googlecode.com/svn/trunk@5 a90a0800-428d-89a3-ac20-94765a7798ee
2012-12-14 23:00:21 +00:00
yann.collet.73@gmail.com
d6a6bd9e72 New version
Added : capability to provide input in several consecutive blocks
Single version provided : XXH32() (Speed 5.4 GB/s), with a Q.Score of 10

git-svn-id: https://xxhash.googlecode.com/svn/trunk@4 a90a0800-428d-89a3-ac20-94765a7798ee
2012-12-12 19:06:11 +00:00
yann.collet.73@gmail.com
db3c9f7f3b Added : benchmark program, for easier evaluation
Corrected : _rotl() support limited to Windows; replaced with software-defined for other targets

git-svn-id: https://xxhash.googlecode.com/svn/trunk@3 a90a0800-428d-89a3-ac20-94765a7798ee
2012-05-10 01:22:58 +00:00
yann.collet.73@gmail.com
ab856b12b8 initial release
git-svn-id: https://xxhash.googlecode.com/svn/trunk@2 a90a0800-428d-89a3-ac20-94765a7798ee
2012-04-30 15:49:54 +00:00
(no author)
8a09add47b Initial directory structure.
git-svn-id: https://xxhash.googlecode.com/svn/trunk@1 a90a0800-428d-89a3-ac20-94765a7798ee
2012-04-12 21:20:40 +00:00