diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-08-31 05:12:23 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-08-31 05:12:23 +0200 |
commit | b9df697d6de0bd1ba4e9fbb40a7b3a5ab8e7cfdd (patch) | |
tree | db46361a7ab7ef87c73cb29ae9eccdfc26b00ae9 | |
parent | 77542be46d3b56c48735f72d7345a1f1034a0a90 (diff) |
simple-mat: add __restrict for GNU
-rw-r--r-- | opentrack/simple-mat.hpp | 3 |
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"); |