File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 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 {
118118 assert (Base::size () == b.size ());
119119 size_t n = size (*this );
120120 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 ) {
123123 auto &ai = vector_cast<u64x4>((*this )[i]);
124124 auto bi = vector_cast<u64x4 const >(b[i]);
125125#ifdef __AVX2__
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ namespace cp_algo {
6060 }
6161
6262 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 {
6464 return (reinterpret_cast <std::uintptr_t >(p) % Align) == 0 ;
6565 }
6666
You can’t perform that action at this time.
0 commit comments