/* Copyright 2025 Joaquin M Lopez Munoz. * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) * * See https://www.boost.org/libs/bloom for library home page. */ #ifndef BOOST_BLOOM_DETAIL_FAST_MULTIBLOCK32_NEON_HPP #define BOOST_BLOOM_DETAIL_FAST_MULTIBLOCK32_NEON_HPP #include #include #include #include #include #include namespace boost{ namespace bloom{ #if defined(BOOST_MSVC) #pragma warning(push) #pragma warning(disable:4714) /* marked as __forceinline not inlined */ #endif /* https://stackoverflow.com/a/54018882/213114 */ #ifdef _MSC_VER #define BOOST_BLOOM_INIT_U32X4(w,x,y,z) \ {(std::uint32_t(w)+(unsigned long long(x)<<32)), \ (std::uint32_t(y)+(unsigned long long(z)<<32))} #else #define BOOST_BLOOM_INIT_U32X4(w,x,y,z) \ {std::uint32_t(w),std::uint32_t(x),std::uint32_t(y),std::uint32_t(z)} #endif #define BOOST_BLOOM_INIT_U32X4X2(w0,x0,y0,z0,w1,x1,y1,z1) \ {{BOOST_BLOOM_INIT_U32X4(w0,x0,y0,z0),BOOST_BLOOM_INIT_U32X4(w1,x1,y1,z1)}} template struct fast_multiblock32:detail::multiblock_fpr_base { static constexpr std::size_t k=K; using value_type=uint32x4x2_t[(k+7)/8]; static constexpr std::size_t used_value_size=sizeof(std::uint32_t)*k; static BOOST_FORCEINLINE void mark(value_type& x,std::uint64_t hash) { for(std::size_t i=0;i