user3476225
user3476225

Reputation: 240

Neon casting issue

I am new to the NEON intrinsics (A9 processor).

I want to convert uint8x16_t to int32x4_t value . I tried to use the vreinterpret_s32_u8 to do so which did not work .

Can anyone please guide me? Really appreciate your help .

Upvotes: 3

Views: 287

Answers (1)

auselen
auselen

Reputation: 28087

8x16 = 128, you need to operate on quad word vectors.

vreinterpret{q}_dsttype_srctype

Where:

q

Specifies that the conversion operates on 128-bit vectors. If it is not present, the conversion operates on 64-bit vectors.

Which should be

int32x4_t vreinterpretq_s32_u8 (uint8x16_t __a)

Upvotes: 2

Related Questions