summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-08-31 05:12:23 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-08-31 05:12:23 +0200
commitb9df697d6de0bd1ba4e9fbb40a7b3a5ab8e7cfdd (patch)
treedb46361a7ab7ef87c73cb29ae9eccdfc26b00ae9
parent77542be46d3b56c48735f72d7345a1f1034a0a90 (diff)
simple-mat: add __restrict for GNU
-rw-r--r--opentrack/simple-mat.hpp3
1 files changed, 3 insertions, 0 deletions
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<typename num, int h_, int w_>
class Mat
{
+#ifdef __GNUC__
+ __restrict
+#endif
num data[h_][w_];
static_assert(h_ > 0 && w_ > 0, "must have positive mat dimensions");