mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-09-11 21:20:39 +02:00
Update minisketch subtree to latest master
This commit is contained in:
@@ -12,6 +12,7 @@
|
|||||||
|
|
||||||
#include "../int_utils.h"
|
#include "../int_utils.h"
|
||||||
#include "../lintrans.h"
|
#include "../lintrans.h"
|
||||||
|
#include "../util.h"
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
@@ -28,7 +29,7 @@ namespace {
|
|||||||
# define NO_SANITIZE_MEMORY
|
# define NO_SANITIZE_MEMORY
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
template<typename I, int BITS, I MOD> NO_SANITIZE_MEMORY I MulWithClMulReduce(I a, I b)
|
template<typename I, int BITS, I MOD> NO_SANITIZE_MEMORY MAYBE_UNUSED I MulWithClMulReduce(I a, I b)
|
||||||
{
|
{
|
||||||
static constexpr I MASK = Mask<BITS, I>();
|
static constexpr I MASK = Mask<BITS, I>();
|
||||||
|
|
||||||
@@ -65,7 +66,7 @@ template<typename I, int BITS, I MOD> NO_SANITIZE_MEMORY I MulWithClMulReduce(I
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename I, int BITS, int POS> NO_SANITIZE_MEMORY I MulTrinomial(I a, I b)
|
template<typename I, int BITS, int POS> NO_SANITIZE_MEMORY MAYBE_UNUSED I MulTrinomial(I a, I b)
|
||||||
{
|
{
|
||||||
static constexpr I MASK = Mask<BITS, I>();
|
static constexpr I MASK = Mask<BITS, I>();
|
||||||
|
|
||||||
|
|||||||
@@ -26,6 +26,20 @@
|
|||||||
#define EXPECT(x,c) (x)
|
#define EXPECT(x,c) (x)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(__has_cpp_attribute)
|
||||||
|
# if __has_cpp_attribute(maybe_unused)
|
||||||
|
# define MAYBE_UNUSED [[maybe_unused]]
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef MAYBE_UNUSED
|
||||||
|
# if defined(__GNUC__)
|
||||||
|
# define MAYBE_UNUSED __attribute__((unused))
|
||||||
|
# else
|
||||||
|
# define MAYBE_UNUSED
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Assertion macros */
|
/* Assertion macros */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user