Data type compatibility with NEON intrinsics

后端 未结 5 996
轻奢々
轻奢々 2021-01-03 05:26

I am working on ARM optimizations using the NEON intrinsics, from C++ code. I understand and master most of the typing issues, but I am stuck on this one:

The instru

5条回答
  •  长发绾君心
    2021-01-03 05:31

    I was facing the same kind of problem, so I introduced a flexible data type.

    I can now therefore define the following:

    typedef NeonVectorType uint_128bit_t; //suitable for uint8x16_t, uint8x8x2_t, uint32x4_t, etc.
    typedef NeonVectorType uint_64bit_t; //suitable for uint8x8_t, uint32x2_t, etc.
    

提交回复
热议问题