pcm/Neon: make neon_x4_b() variadic

This commit is contained in:
Max Kellermann 2014-03-16 08:58:09 +01:00
parent 6f4775a8ee
commit b55e1dcb5e
1 changed files with 5 additions and 6 deletions

View File

@ -44,13 +44,12 @@
* @param func the NEON intrinsic * @param func the NEON intrinsic
* @param result the vector variable that gets assigned the result * @param result the vector variable that gets assigned the result
* @param vector the input vector * @param vector the input vector
* @param arg an additional argument that gets passed to each call
*/ */
#define neon_x4_b(func, result, vector, arg) do { \ #define neon_x4_b(func, result, vector, ...) do { \
result.val[0] = func(vector.val[0], arg); \ result.val[0] = func(vector.val[0], __VA_ARGS__); \
result.val[1] = func(vector.val[1], arg); \ result.val[1] = func(vector.val[1], __VA_ARGS__); \
result.val[2] = func(vector.val[2], arg); \ result.val[2] = func(vector.val[2], __VA_ARGS__); \
result.val[3] = func(vector.val[3], arg); \ result.val[3] = func(vector.val[3], __VA_ARGS__); \
} while (0) } while (0)
/** /**