One pointer per lane, gathered from and scattered to together, and advanced together: walking several buffers (channels, matrix columns, filter states) at once.
More...
|
|
| PointerVector (const std::array< T *, lanes > &pointers) |
| | Point lane i at pointers[i].
|
|
std::array< T *, lanes > | pointers () const |
| | The current pointers.
|
|
template<int offset = 0> |
| argon_type | Load () const |
| | Load lane i from offset bytes past pointer i.
|
|
template<int offset = 0> |
| void | Store (argon_type value) const |
| | Store lane i of value to offset bytes past pointer i.
|
|
template<int step> |
| void | Advance () |
| | Advance every pointer by step bytes.
|
| template<int step> |
| argon_type | AdvanceAndLoad () |
| | Advance every pointer by step bytes, then load through them: one step of a lockstep walk.
|
| template<int step> |
| void | AdvanceAndStore (argon_type value) |
| | Advance every pointer by step bytes, then store value through them.
|
template<typename T>
requires (lane_scalar<std::remove_const_t<T>> && (sizeof(T) == 4 || sizeof(T) == 8))
class argon::PointerVector< T >
One pointer per lane, gathered from and scattered to together, and advanced together: walking several buffers (channels, matrix columns, filter states) at once.
- Template Parameters
-
| T | The element type: 32-bit (4 lanes) or 64-bit (2 lanes). A const type allows loads only. |
On MVE the pointers live in a vector register and each access is one gather or scatter (vldrw / vldrd / vstrw / vstrd with a vector of base addresses). Elsewhere they are ordinary pointers, accessed lane by lane. Offsets and steps are in bytes; as the instructions require, they are multiples of sizeof(T), within ±508 bytes for 32-bit elements and ±1016 for 64-bit ones. The limits apply on every platform, so code stays portable.