summaryrefslogtreecommitdiffstats
path: root/Utilities/cmexpat/lib/siphash.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-08-13 19:22:18 (GMT)
committerBrad King <brad.king@kitware.com>2024-08-13 19:22:18 (GMT)
commit25c2d60c043dff4c452cc0dc786ffdb0b8213cef (patch)
tree04e4a73cc4b2214a287eea52436269c0c125ec9c /Utilities/cmexpat/lib/siphash.h
parentfc5bbb1f015600e5abeef019da770b34ad1cefd4 (diff)
parent865006f0331bc9579647fdce51e2e8b0013c4bcb (diff)
downloadCMake-25c2d60c043dff4c452cc0dc786ffdb0b8213cef.zip
CMake-25c2d60c043dff4c452cc0dc786ffdb0b8213cef.tar.gz
CMake-25c2d60c043dff4c452cc0dc786ffdb0b8213cef.tar.bz2
Merge branch 'upstream-expat' into update-expat
* upstream-expat: expat 2024-03-13 (fa75b965)
Diffstat (limited to 'Utilities/cmexpat/lib/siphash.h')
-rw-r--r--Utilities/cmexpat/lib/siphash.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/Utilities/cmexpat/lib/siphash.h b/Utilities/cmexpat/lib/siphash.h
index 952f1c8..c4f6fe9 100644
--- a/Utilities/cmexpat/lib/siphash.h
+++ b/Utilities/cmexpat/lib/siphash.h
@@ -117,7 +117,7 @@
* if this code is included and compiled as C++; related GCC warning is:
* warning: use of C++11 long long integer constant [-Wlong-long]
*/
-#define _SIP_ULL(high, low) (((uint64_t)high << 32) | low)
+#define SIP_ULL(high, low) ((((uint64_t)high) << 32) | (low))
#define SIP_ROTL(x, b) (uint64_t)(((x) << (b)) | ((x) >> (64 - (b))))
@@ -201,10 +201,10 @@ sip_round(struct siphash *H, const int rounds) {
static struct siphash *
sip24_init(struct siphash *H, const struct sipkey *key) {
- H->v0 = _SIP_ULL(0x736f6d65U, 0x70736575U) ^ key->k[0];
- H->v1 = _SIP_ULL(0x646f7261U, 0x6e646f6dU) ^ key->k[1];
- H->v2 = _SIP_ULL(0x6c796765U, 0x6e657261U) ^ key->k[0];
- H->v3 = _SIP_ULL(0x74656462U, 0x79746573U) ^ key->k[1];
+ H->v0 = SIP_ULL(0x736f6d65U, 0x70736575U) ^ key->k[0];
+ H->v1 = SIP_ULL(0x646f7261U, 0x6e646f6dU) ^ key->k[1];
+ H->v2 = SIP_ULL(0x6c796765U, 0x6e657261U) ^ key->k[0];
+ H->v3 = SIP_ULL(0x74656462U, 0x79746573U) ^ key->k[1];
H->p = H->buf;
H->c = 0;