summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-03-16 08:58:09 +0100
committerMax Kellermann <max@duempel.org>2014-03-16 09:30:50 +0100
commitb55e1dcb5ee1462e18b7857c7eeebd5a0b87a9c4 (patch)
tree98135e6fa396d47f6d1cf5a9e4ddc2fd77215619 /src
parent6f4775a8eeb30d0fde622f4e89979179af47d219 (diff)
pcm/Neon: make neon_x4_b() variadic
Diffstat (limited to 'src')
-rw-r--r--src/pcm/Neon.hxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/pcm/Neon.hxx b/src/pcm/Neon.hxx
index 2d3a59d2b..ba31e55b8 100644
--- a/src/pcm/Neon.hxx
+++ b/src/pcm/Neon.hxx
@@ -44,13 +44,12 @@
* @param func the NEON intrinsic
* @param result the vector variable that gets assigned the result
* @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 { \
- result.val[0] = func(vector.val[0], arg); \
- result.val[1] = func(vector.val[1], arg); \
- result.val[2] = func(vector.val[2], arg); \
- result.val[3] = func(vector.val[3], arg); \
+#define neon_x4_b(func, result, vector, ...) do { \
+ result.val[0] = func(vector.val[0], __VA_ARGS__); \
+ result.val[1] = func(vector.val[1], __VA_ARGS__); \
+ result.val[2] = func(vector.val[2], __VA_ARGS__); \
+ result.val[3] = func(vector.val[3], __VA_ARGS__); \
} while (0)
/**