From b9df697d6de0bd1ba4e9fbb40a7b3a5ab8e7cfdd Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 31 Aug 2015 05:12:23 +0200 Subject: simple-mat: add __restrict for GNU --- opentrack/simple-mat.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'opentrack/simple-mat.hpp') diff --git a/opentrack/simple-mat.hpp b/opentrack/simple-mat.hpp index c603a2cb..e462812b 100644 --- a/opentrack/simple-mat.hpp +++ b/opentrack/simple-mat.hpp @@ -52,6 +52,9 @@ namespace { template class Mat { +#ifdef __GNUC__ + __restrict +#endif num data[h_][w_]; static_assert(h_ > 0 && w_ > 0, "must have positive mat dimensions"); -- cgit v1.2.3