File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -118,8 +118,8 @@ namespace cp_algo::linalg {
118
118
assert (Base::size () == b.size ());
119
119
size_t n = size (*this );
120
120
u64x4 scaler = u64x4 () + scale.getr ();
121
- if (is_aligned (this ) && is_aligned (&b[0 ])) // verify we're not in SSO
122
- for (i -= i % 4 ; i < n - 3 ; i += 4 ) {
121
+ if (is_aligned (&(* this )[ 0 ] ) && is_aligned (&b[0 ])) // verify we're not in SSO
122
+ for (i -= i % 4 ; i < n; i += 4 ) {
123
123
auto &ai = vector_cast<u64x4>((*this )[i]);
124
124
auto bi = vector_cast<u64x4 const >(b[i]);
125
125
#ifdef __AVX2__
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ namespace cp_algo {
60
60
}
61
61
62
62
template <std::size_t Align = 32 >
63
- [[gnu::always_inline]] inline bool is_aligned (const void * p) noexcept {
63
+ [[gnu::always_inline]] inline bool is_aligned (const auto * p) noexcept {
64
64
return (reinterpret_cast <std::uintptr_t >(p) % Align) == 0 ;
65
65
}
66
66
You can’t perform that action at this time.
0 commit comments