Search code examples
c++cssesimdneon

Aliasing of NEON vector data types


Does NEON support aliasing of the vector data types with their scalar components?

E.g.(Intel SSE)

typedef long long __m128i __attribute__ ((__vector_size__ (16), __may_alias__));

The above will allow me to do:

__m128i* somePtr;
somePtr++;//advance to the next block

Aliasing a la Intel it will allow to advance my pointer to the next block I want to process without managing extra counts and indexes.


Solution

  • NEON intrinsics implementation does NOT support aliasing of the vector data types with their scalar components.