lieff / minimp3

Minimalistic MP3 decoder single header library
Creative Commons Zero v1.0 Universal
1.58k stars 213 forks source link

Use VSET to initialize static const f4's #107

Open danfal opened 1 year ago

danfal commented 1 year ago

This addresses a Windows ARM64 compilation failure due to array initializer list assignment to float32x4_t.

There are more instances of this pattern, but these are the only ones where f4 may be float32x4_t.

danfal commented 1 year ago

From https://developer.arm.com/documentation/dui0491/i/Using-NEON-Support/Vector-data-types?lang=en:

Note The vector data types and arrays of the vector data types cannot be initialized by direct literal assignment. You must initialize them using one of the load intrinsics. See Table 44.