summaryrefslogtreecommitdiff
path: root/test/dct16x16_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/dct16x16_test.cc')
-rw-r--r--test/dct16x16_test.cc10
1 files changed, 1 insertions, 9 deletions
diff --git a/test/dct16x16_test.cc b/test/dct16x16_test.cc
index ddaf9395b..e6224b21a 100644
--- a/test/dct16x16_test.cc
+++ b/test/dct16x16_test.cc
@@ -25,20 +25,12 @@
#include "vpx/vpx_codec.h"
#include "vpx/vpx_integer.h"
#include "vpx_ports/mem.h"
+#include "vpx_ports/msvc.h" // for round()
using libvpx_test::ACMRandom;
namespace {
-#ifdef _MSC_VER
-static int round(double x) {
- if (x < 0)
- return static_cast<int>(ceil(x - 0.5));
- else
- return static_cast<int>(floor(x + 0.5));
-}
-#endif
-
const int kNumCoeffs = 256;
const double C1 = 0.995184726672197;
const double C2 = 0.98078528040323;