summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2013-11-26 16:17:12 -0500
committerErik Schnetter <schnetter@gmail.com>2013-11-26 16:17:12 -0500
commit9d434ffc2e79477757c0da87b529f1b040183fa1 (patch)
tree672bfbf6a1516cce5a32f7f65c5d3db832187d05
parent967755a9fec3e08a15d0391f7b3e3fb8f0fadd9b (diff)
downloadvecmathlib-9d434ffc2e79477757c0da87b529f1b040183fa1.zip
vecmathlib-9d434ffc2e79477757c0da87b529f1b040183fa1.tar.gz
Use __restrict__ instead of restrict
-rw-r--r--instantiations.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/instantiations.cc b/instantiations.cc
index 7a8a0bd..47349a6 100644
--- a/instantiations.cc
+++ b/instantiations.cc
@@ -3,6 +3,8 @@
#define VML_NODEBUG
+#define restrict __restrict__
+
#include "vecmathlib.h"
@@ -168,8 +170,8 @@ void loop_add_aligned(real *restrict a,
// Reduction loop
extern "C"
real loop_dot_reduce(real *restrict a,
- real *restrict b,
- ptrdiff_t n)
+ real *restrict b,
+ ptrdiff_t n)
{
realV sumV = 0.0;
for (ptrdiff_t i=0; i<n; i+=vecsize) {
OpenPOWER on IntegriCloud