Skip to content

Instantly share code, notes, and snippets.

@kriegsman
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kriegsman/2a8a1889f4afe23680c8 to your computer and use it in GitHub Desktop.
Save kriegsman/2a8a1889f4afe23680c8 to your computer and use it in GitHub Desktop.
C wrapper for ARM uqadd8
// See also __uqadd8
static inline uint8x4_t uqadd8x4 (uint8x4_t xs, uint8x4_t ys)
{
uint8x4_t sums;
asm volatile(
"uqadd8 %[sums], %[xs], %[ys]"
: [sums] "=r" (sums)
: [xs] "%r" (xs), [ys] "r" (ys));
return sums;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment