From c9156b0f99053713a1160d7e906eccae21af5dae Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Tue, 8 Sep 2020 23:34:57 -0700 Subject: [PATCH] ircd::simd: Add typedef for corresponding type in the unaligned wrapper. --- include/ircd/simd/type.unaligned.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/ircd/simd/type.unaligned.h b/include/ircd/simd/type.unaligned.h index ff7b680d3..3079360a7 100644 --- a/include/ircd/simd/type.unaligned.h +++ b/include/ircd/simd/type.unaligned.h @@ -23,9 +23,11 @@ __attribute__((aligned(1))) \ __attribute__((visibility("internal"))) \ NAME \ { \ + using value_type = TYPE; \ + \ TYPE val; \ \ - operator TYPE () const { return val; } \ + operator TYPE() const { return val; } \ \ template NAME &operator=(T&& t) \ { \