From b682382d10828c5c0998f7ffe7eefff880910293 Mon Sep 17 00:00:00 2001 From: joaquintides Date: Sat, 14 Jan 2023 18:28:34 +0100 Subject: [PATCH] fixed Neon group15::at --- cfoa.hpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/cfoa.hpp b/cfoa.hpp index 3c9a2149..131e1378 100644 --- a/cfoa.hpp +++ b/cfoa.hpp @@ -349,6 +349,16 @@ struct group15 vst1q_u8(reinterpret_cast(m),vdupq_n_s8(0)); } + inline std::atomic_uchar& at(std::size_t pos) + { + return m[pos]; + } + + inline const std::atomic_uchar& at(std::size_t pos)const + { + return m[pos]; + } + inline void set(std::size_t pos,std::size_t hash) { BOOST_ASSERT(pos(&m)[pos]; - } - - inline const std::atomic_uchar& at(std::size_t pos)const - { - return reinterpret_cast(&m)[pos]; - } - inline std::atomic_uchar& overflow() { return at(N);