mirror of
https://github.com/boostorg/boost_unordered_benchmarks.git
synced 2026-02-19 02:12:14 +00:00
fixed Neon group15::at
This commit is contained in:
20
cfoa.hpp
20
cfoa.hpp
@@ -349,6 +349,16 @@ struct group15
|
||||
vst1q_u8(reinterpret_cast<uint8_t*>(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<N);
|
||||
@@ -475,16 +485,6 @@ private:
|
||||
#endif
|
||||
}
|
||||
|
||||
inline std::atomic_uchar& at(std::size_t pos)
|
||||
{
|
||||
return reinterpret_cast<unsigned char*>(&m)[pos];
|
||||
}
|
||||
|
||||
inline const std::atomic_uchar& at(std::size_t pos)const
|
||||
{
|
||||
return reinterpret_cast<const unsigned char*>(&m)[pos];
|
||||
}
|
||||
|
||||
inline std::atomic_uchar& overflow()
|
||||
{
|
||||
return at(N);
|
||||
|
||||
Reference in New Issue
Block a user