I have a question about neon!! =)

55 views
Skip to first unread message

송방용

unread,
Nov 30, 2015, 5:23:53 PM11/30/15
to android-ndk
Dear Android Developers!

Nice to meet you :)

To learn android neon, I wrote a sample code.

But I gave an error message.

void NeonCall(char *buffer) {
   char *str;
   uint16_t in[8] = {0, 1, 2, 3, 4, 5, 6, 7};
   uint16_t out[8];
   r = vld1q_u16(&in[0]);
   vst1q_u16(&out[0], r);    <- Here came error message
}

Error message is Invalid Argument.

I don't understand why it occurs.

When I tried to use vld1q_u16 only, It works correctly. the value of r is correct.

If you know what the problem is, Please teach me :)

Thanks in advance!

Glenn Kasten

unread,
Nov 30, 2015, 5:26:19 PM11/30/15
to android-ndk
Can you please give the error message?
It looks like r is not declared.  Also buffer and str are unused.

Alex Cohn

unread,
Jan 17, 2016, 1:59:24 PM1/17/16
to android-ndk
make sure r is declared correctly as uint16x8_t r. Your snippet compiles for me with gradle experimental plugin 0.2.0.

BR,
Alex
Reply all
Reply to author
Forward
0 new messages