"ssh:/git@developer.sourcefind.cn:2222/tsoc/openmm.git" did not exist on "dbaeb984ef6e441d2fc9b4770416ca70b36135e5"
Commit 828ae646 authored by Marc Marí's avatar Marc Marí
Browse files

Use brace initialization for Neon vectors

parent 15a039ab
...@@ -76,10 +76,7 @@ public: ...@@ -76,10 +76,7 @@ public:
fvec4() {} fvec4() {}
fvec4(float v) : val(vdupq_n_f32(v)) {} fvec4(float v) : val(vdupq_n_f32(v)) {}
fvec4(float v1, float v2, float v3, float v4) { fvec4(float v1, float v2, float v3, float v4) : val {v1, v2, v3, v4} {}
float v[] = {v1, v2, v3, v4};
val = vld1q_f32(v);
}
fvec4(float32x4_t v) : val(v) {} fvec4(float32x4_t v) : val(v) {}
fvec4(const float* v) : val(vld1q_f32(v)) {} fvec4(const float* v) : val(vld1q_f32(v)) {}
operator float32x4_t() const { operator float32x4_t() const {
...@@ -198,10 +195,7 @@ public: ...@@ -198,10 +195,7 @@ public:
ivec4() {} ivec4() {}
ivec4(int v) : val(vdupq_n_s32(v)) {} ivec4(int v) : val(vdupq_n_s32(v)) {}
ivec4(int v1, int v2, int v3, int v4) { ivec4(int v1, int v2, int v3, int v4) : val {v1, v2, v3, v4} {}
int v[] = {v1, v2, v3, v4};
val = vld1q_s32(v);
}
ivec4(int32x4_t v) : val(v) {} ivec4(int32x4_t v) : val(v) {}
ivec4(const int* v) : val(vld1q_s32(v)) {} ivec4(const int* v) : val(vld1q_s32(v)) {}
operator int32x4_t() const { operator int32x4_t() const {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment