summaryrefslogtreecommitdiff
path: root/test/partial_idct_test.cc
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2016-11-12 12:59:34 -0800
committerJames Zern <jzern@google.com>2016-11-15 12:18:38 -0800
commit2218a4c292f779df94be66ce7270b94a619c5785 (patch)
tree27745bf111b43af69e11a9215f672491961567f1 /test/partial_idct_test.cc
parent0412193bb9775f6be0f9f6c74b90ff705e584d92 (diff)
downloadlibvpx-2218a4c292f779df94be66ce7270b94a619c5785.tar
libvpx-2218a4c292f779df94be66ce7270b94a619c5785.tar.gz
libvpx-2218a4c292f779df94be66ce7270b94a619c5785.tar.bz2
libvpx-2218a4c292f779df94be66ce7270b94a619c5785.zip
partial_idct_test: use <limits> for int16_min/max
this removes the need for __STDC_LIMIT_MACROS which is defined in vpx_integer.h, but may be preceded by earlier includes of stdint.h; fixes build with the r13 ndk Change-Id: I3950c8837cf90d5584a20ce370ae370581c2182c
Diffstat (limited to 'test/partial_idct_test.cc')
-rw-r--r--test/partial_idct_test.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/partial_idct_test.cc b/test/partial_idct_test.cc
index bc214ad89..b31b82f44 100644
--- a/test/partial_idct_test.cc
+++ b/test/partial_idct_test.cc
@@ -12,6 +12,8 @@
#include <stdlib.h>
#include <string.h>
+#include <limits>
+
#include "third_party/googletest/src/include/gtest/gtest.h"
#include "./vp9_rtcd.h"
@@ -45,7 +47,7 @@ int16_t MaxSupportedCoeff(InvTxfmFunc a) {
#else
(void)a;
#endif
- return INT16_MAX;
+ return std::numeric_limits<int16_t>::max();
}
int16_t MinSupportedCoeff(InvTxfmFunc a) {
@@ -57,11 +59,11 @@ int16_t MinSupportedCoeff(InvTxfmFunc a) {
}
#elif HAVE_NEON
if (a == vpx_idct4x4_16_add_neon) {
- return INT16_MIN + 1;
+ return std::numeric_limits<int16_t>::min() + 1;
}
#endif
#endif // !CONFIG_EMULATE_HARDWARE
- return INT16_MIN;
+ return std::numeric_limits<int16_t>::min();
}
class PartialIDctTest : public ::testing::TestWithParam<PartialInvTxfmParam> {