arm-simd working

This commit is contained in:
Joachim Schöberl 2021-01-30 21:02:49 +01:00
parent f53c069308
commit 18f5a933a9

View File

@ -1,5 +1,3 @@
#ifdef NOTYETWORKING
#include "arm_neon.h" #include "arm_neon.h"
namespace ngcore namespace ngcore
@ -42,8 +40,11 @@ namespace ngcore
SIMD (double v0, double v1) { data[0] = v0; data[1] = v1; } SIMD (double v0, double v1) { data[0] = v0; data[1] = v1; }
SIMD (std::array<double, 2> arr) SIMD (std::array<double, 2> arr)
: data{(arr[0], arr[1])} // : data{(arr[0], arr[1])}
{} {
data[0] = arr[0];
data[1] = arr[1];
}
SIMD & operator= (const SIMD &) = default; SIMD & operator= (const SIMD &) = default;
@ -143,4 +144,3 @@ namespace ngcore
} }
#endif