mirror of
https://github.com/FEX-Emu/xxHash.git
synced 2024-11-23 06:29:39 +00:00
strict c90 compliance
added travisCI tests added minor fixes
This commit is contained in:
parent
7aa21ccd5e
commit
4dab857945
@ -21,9 +21,13 @@ matrix:
|
||||
- make clean
|
||||
- CFLAGS="-Werror" MOREFLAGS="-Wno-sign-conversion" make dispatch # removing sign conversion warnings due to a bug in gcc-5's definition of some AVX512 intrinsics
|
||||
- make clean
|
||||
- CC=g++ CFLAGS="-O1 -mavx512f -Werror" make
|
||||
- CFLAGS="-O1 -mavx512f -Werror" make
|
||||
- make clean
|
||||
- CC=g++ CFLAGS="-Wall -Wextra -Werror" make DISPATCH=1
|
||||
- CFLAGS="-Wall -Wextra -Werror" make DISPATCH=1
|
||||
- make clean
|
||||
- CFLAGS="-std=c90 -pedantic -Wno-long-long -Werror" make xxhsum # check C90 compliance
|
||||
- make clean
|
||||
- CFLAGS="-std=c90 -pedantic -Werror" CPPFLAGS="-DXXH_NO_LONG_LONG" make libxxhash # do not use long-long type, effectively reduced to XXH32
|
||||
|
||||
|
||||
- name: Check results consistency on x64
|
||||
|
22
xxhash.h
22
xxhash.h
@ -1703,11 +1703,12 @@ XXH_PUBLIC_API unsigned XXH_versionNumber (void) { return XXH_VERSION_NUMBER; }
|
||||
* @ingroup impl
|
||||
* @{
|
||||
*/
|
||||
static const xxh_u32 XXH_PRIME32_1 = 0x9E3779B1U; /*!< 0b10011110001101110111100110110001 */
|
||||
static const xxh_u32 XXH_PRIME32_2 = 0x85EBCA77U; /*!< 0b10000101111010111100101001110111 */
|
||||
static const xxh_u32 XXH_PRIME32_3 = 0xC2B2AE3DU; /*!< 0b11000010101100101010111000111101 */
|
||||
static const xxh_u32 XXH_PRIME32_4 = 0x27D4EB2FU; /*!< 0b00100111110101001110101100101111 */
|
||||
static const xxh_u32 XXH_PRIME32_5 = 0x165667B1U; /*!< 0b00010110010101100110011110110001 */
|
||||
/* #define instead of static const, to be used as initializers */
|
||||
#define XXH_PRIME32_1 0x9E3779B1U /*!< 0b10011110001101110111100110110001 */
|
||||
#define XXH_PRIME32_2 0x85EBCA77U /*!< 0b10000101111010111100101001110111 */
|
||||
#define XXH_PRIME32_3 0xC2B2AE3DU /*!< 0b11000010101100101010111000111101 */
|
||||
#define XXH_PRIME32_4 0x27D4EB2FU /*!< 0b00100111110101001110101100101111 */
|
||||
#define XXH_PRIME32_5 0x165667B1U /*!< 0b00010110010101100110011110110001 */
|
||||
|
||||
#ifdef XXH_OLD_NAMES
|
||||
# define PRIME32_1 XXH_PRIME32_1
|
||||
@ -2285,11 +2286,12 @@ XXH_readLE64_align(const void* ptr, XXH_alignment align)
|
||||
* @ingroup impl
|
||||
* @{
|
||||
*/
|
||||
static const xxh_u64 XXH_PRIME64_1 = 0x9E3779B185EBCA87ULL; /*!< 0b1001111000110111011110011011000110000101111010111100101010000111 */
|
||||
static const xxh_u64 XXH_PRIME64_2 = 0xC2B2AE3D27D4EB4FULL; /*!< 0b1100001010110010101011100011110100100111110101001110101101001111 */
|
||||
static const xxh_u64 XXH_PRIME64_3 = 0x165667B19E3779F9ULL; /*!< 0b0001011001010110011001111011000110011110001101110111100111111001 */
|
||||
static const xxh_u64 XXH_PRIME64_4 = 0x85EBCA77C2B2AE63ULL; /*!< 0b1000010111101011110010100111011111000010101100101010111001100011 */
|
||||
static const xxh_u64 XXH_PRIME64_5 = 0x27D4EB2F165667C5ULL; /*!< 0b0010011111010100111010110010111100010110010101100110011111000101 */
|
||||
/* #define rather that static const, to be used as initializers */
|
||||
#define XXH_PRIME64_1 0x9E3779B185EBCA87ULL /*!< 0b1001111000110111011110011011000110000101111010111100101010000111 */
|
||||
#define XXH_PRIME64_2 0xC2B2AE3D27D4EB4FULL /*!< 0b1100001010110010101011100011110100100111110101001110101101001111 */
|
||||
#define XXH_PRIME64_3 0x165667B19E3779F9ULL /*!< 0b0001011001010110011001111011000110011110001101110111100111111001 */
|
||||
#define XXH_PRIME64_4 0x85EBCA77C2B2AE63ULL /*!< 0b1000010111101011110010100111011111000010101100101010111001100011 */
|
||||
#define XXH_PRIME64_5 0x27D4EB2F165667C5ULL /*!< 0b0010011111010100111010110010111100010110010101100110011111000101 */
|
||||
|
||||
#ifdef XXH_OLD_NAMES
|
||||
# define PRIME64_1 XXH_PRIME64_1
|
||||
|
Loading…
Reference in New Issue
Block a user