Force 32bit alignment for vectorized operations, fixes 32bit build
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
6d9633b7fb
commit
2dc12fb1ca
8 changed files with 656 additions and 5 deletions
|
@ -48,7 +48,7 @@ struct Port {
|
|||
/** Voltage of the port. */
|
||||
/** NOTE alignas is required in order to allow SSE usage.
|
||||
Consecutive data (like in a vector) would otherwise pack Ports in a way that breaks SSE. */
|
||||
union alignas(PORT_MAX_CHANNELS) {
|
||||
union alignas(32) {
|
||||
/** Unstable API. Use getVoltage() and setVoltage() instead. */
|
||||
float voltages[PORT_MAX_CHANNELS] = {};
|
||||
/** DEPRECATED. Unstable API. Use getVoltage() and setVoltage() instead. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue