Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 .

like image 310
user3476225 Avatar asked Apr 26 '26 02:04

user3476225


1 Answers

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)

like image 93
auselen Avatar answered Apr 28 '26 12:04

auselen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!