From cd31ae86d72a06958a04cc4d84cd5e2e39c9c778 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Sat, 26 Nov 2016 16:42:03 -0800 Subject: [PATCH] Add single-arg constructor for vec2_s16. --- firmware/common/simd.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/firmware/common/simd.hpp b/firmware/common/simd.hpp index 0d65b8dd..c2e9be95 100644 --- a/firmware/common/simd.hpp +++ b/firmware/common/simd.hpp @@ -41,6 +41,12 @@ struct vec2_s16 { { } + constexpr vec2_s16( + const int16_t v + ) : v { v, v } + { + } + constexpr vec2_s16( const int16_t v0, const int16_t v1