aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2021-12-13 17:10:26 +0100
committerMarcoFalke <falke.marco@gmail.com>2021-12-13 17:10:29 +0100
commit42796742a45e3f12e82588afa77054c103fca05c (patch)
treee9158db7865ba7bb893d65476a630626955f5fd6 /src
parentc8fac372c202fa82013a4fbd968e037c70a1a51b (diff)
parente9440aeb5cad98fea9971f5126461e0a2b30ab54 (diff)
downloadbitcoin-42796742a45e3f12e82588afa77054c103fca05c.tar.xz
Merge bitcoin/bitcoin#23761: build: use __SIZEOF_INT128__ for checking __int128 availability
e9440aeb5cad98fea9971f5126461e0a2b30ab54 build: use __SIZEOF_INT128__ for checking __int128 availability (fanquake) Pull request description: We already use this in the blockfilter code, https://github.com/bitcoin/bitcoin/blob/bf66e258a84e18935fde3ebb9a4b0392bf883222/src/blockfilter.cpp#L34-L36 so not sure we need to maintain two different ways of testing for the same functionality. Consolidate on testing for `__SIZEOF_INT128__`, which we already use, is supported by the compilers we care about, and is also used by libsecp256k1. ACKs for top commit: sipa: utACK e9440aeb5cad98fea9971f5126461e0a2b30ab54 Zero-1729: crACK e9440aeb5cad98fea9971f5126461e0a2b30ab54 Tree-SHA512: 8aeef1734486a863b5091123bb5f9ba8868b1e2b4b35114586e3eb5862a38d4a1518ed069f37f41cb5e5ce2f6c87d95671996366d5ee990e0c90f268a8978ba3
Diffstat (limited to 'src')
-rw-r--r--src/crypto/muhash.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/muhash.h b/src/crypto/muhash.h
index c023a8b9d3..0c050cd32b 100644
--- a/src/crypto/muhash.h
+++ b/src/crypto/muhash.h
@@ -24,7 +24,7 @@ private:
public:
static constexpr size_t BYTE_SIZE = 384;
-#ifdef HAVE___INT128
+#ifdef __SIZEOF_INT128__
typedef unsigned __int128 double_limb_t;
typedef uint64_t limb_t;
static constexpr int LIMBS = 48;