Skip to content

Commit

Permalink
minor patch for NEON helpers on ARM
Browse files Browse the repository at this point in the history
  • Loading branch information
theofficialgman committed Nov 18, 2023
1 parent 355cde2 commit b1e74b8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/framework/audio/internal/fx/reverb/simdtypes_neon.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,15 @@ struct float_x4
s.n128_f32[1] = v1;
s.n128_f32[2] = v2;
s.n128_f32[3] = v3;
#elif defined(__GNUC__) // gcc (12.2.0) doesn't seem to allow initializer list.
const float init[4] = { v0, v1, v2, v3 };
s = vld1q_f32(init);
#else
s = { v0, v1, v2, v3 };
#endif
}

#if __clang__
#if defined(__clang__) || defined(__GNUC__)
private:
// this helper class allows writing to the single registers for clang
// __mm128 is a built-in type -> we can't return a float& reference.
Expand Down

0 comments on commit b1e74b8

Please sign in to comment.