From 3418a3e37a06600fd041d51973354656cd5458ef Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Wed, 20 Feb 2019 03:14:21 -0500 Subject: [PATCH] Align Port to AVX vector size. --- include/engine/Port.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/engine/Port.hpp b/include/engine/Port.hpp index df1fde89..8178ce1f 100644 --- a/include/engine/Port.hpp +++ b/include/engine/Port.hpp @@ -10,7 +10,7 @@ namespace engine { static const int PORT_MAX_CHANNELS = 16; -struct Port { +struct alignas(32) Port { /** Voltage of the port. */ union { /** Unstable API. Use getVoltage() and setVoltage() instead. */