aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Konstantinos Margaritis <markos@codex.gr>2010-03-03 11:25:41 -0600
committerGravatar Konstantinos Margaritis <markos@codex.gr>2010-03-03 11:25:41 -0600
commit112c550b4a3988f39e7d23e13c2f1bbd857bf55c (patch)
treed85a770308ef7fcf326896e434d7e8b440f024a6 /test
parent45d19afb18c0ac8d07de349dd80544f4b662210d (diff)
Added initial NEON support, most tests pass however we had to use some hackish workarounds
as gcc on ARM (both CodeSourcery 4.4.1 used and experimental 4.5) fail to ensure proper alignment with __attribute__((aligned(16))). This has to be fixed upstream to remove the workarounds.
Diffstat (limited to 'test')
-rw-r--r--test/packetmath.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/packetmath.cpp b/test/packetmath.cpp
index 7d863e616..e0cb61525 100644
--- a/test/packetmath.cpp
+++ b/test/packetmath.cpp
@@ -32,7 +32,10 @@ template<typename T> T ei_negate(const T& x) { return -x; }
template<typename Scalar> bool areApprox(const Scalar* a, const Scalar* b, int size)
{
for (int i=0; i<size; ++i)
- if (!ei_isApprox(a[i],b[i])) return false;
+ if (!ei_isApprox(a[i],b[i])) {
+ std::cout << "a[" << i << "]: " << a[i] << ", b[" << i << "]: " << b[i] << std::endl;
+ return false;
+ }
return true;
}