From 123f384187504585be3fe01002381dd459c17d96 Mon Sep 17 00:00:00 2001 From: Lev Proleev Date: Fri, 26 Feb 2021 21:44:39 +0000 Subject: Update gemmlowp to 13d57703abca3005d97b19df1f2db731607a7dc2 An updated is needed after TF Lite rebase. Bug: 178609672 Test: mma, NeuralNetworksStatic_test Change-Id: Ia7f04fc5b6bd760549395854618d8b20f5c8d228 --- test/test.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/test.h') 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 { typedef MatrixMap Map; typedef MatrixMap 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 { std::vector storage; }; -std::mt19937& RandomEngine() { +inline std::mt19937& RandomEngine() { static std::mt19937 engine; return engine; } -int Random() { +inline int Random() { std::uniform_int_distribution dist(0, std::numeric_limits::max()); return dist(RandomEngine()); } -- cgit v1.2.3