aboutsummaryrefslogtreecommitdiff
path: root/test/test.h
diff options
context:
space:
mode:
authorLev Proleev <levp@google.com>2021-03-12 14:00:45 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2021-03-12 14:00:45 +0000
commit2a3192a8a00a85121171c2034e6cee092551ddd2 (patch)
treea29716289a0b730ca66a3e632c6ce054eb3b90d6 /test/test.h
parent52376d2cf62d41c702d9fa6c7fbcbd322cacde7f (diff)
parent123f384187504585be3fe01002381dd459c17d96 (diff)
downloadgemmlowp-2a3192a8a00a85121171c2034e6cee092551ddd2.tar.gz
Merge "Update gemmlowp to 13d57703abca3005d97b19df1f2db731607a7dc2"android-s-beta-2android-s-beta-1
Diffstat (limited to 'test/test.h')
-rw-r--r--test/test.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test.h b/test/test.h
index aecd0c1..b381bad 100644
--- a/test/test.h
+++ b/test/test.h
@@ -49,7 +49,7 @@ class Matrix : public MatrixMap<tScalar, tOrder> {
typedef MatrixMap<tScalar, tOrder> Map;
typedef MatrixMap<const tScalar, tOrder> ConstMap;
typedef typename Map::Scalar Scalar;
- static const MapOrder Order = tOrder;
+ static constexpr MapOrder Order = tOrder;
using Map::kOrder;
using Map::rows_;
using Map::cols_;
@@ -92,12 +92,12 @@ class Matrix : public MatrixMap<tScalar, tOrder> {
std::vector<Scalar> storage;
};
-std::mt19937& RandomEngine() {
+inline std::mt19937& RandomEngine() {
static std::mt19937 engine;
return engine;
}
-int Random() {
+inline int Random() {
std::uniform_int_distribution<int> dist(0, std::numeric_limits<int>::max());
return dist(RandomEngine());
}