shithub: libvpx

Download patch

ref: 9e3e74390397b5bbab10b7a67178da9aa331ca67
parent: c9ae73b251ed6c754e1990729ff513f75e5c75fe
parent: 77f889b2e34d80f62ddc43642f66f6bda020444c
author: Yaowu Xu <yaowu@google.com>
date: Tue Feb 5 10:26:47 EST 2013

Merge "fix a build issue with MSVC on windows" into experimental

--- a/test/dct16x16_test.cc
+++ b/test/dct16x16_test.cc
@@ -26,6 +26,15 @@
 
 namespace {
 
+#ifdef _MSC_VER
+static int round(double x) {
+  if (x < 0)
+    return (int)ceil(x - 0.5);
+  else
+    return (int)floor(x + 0.5);
+}
+#endif
+
 const double PI = 3.1415926535898;
 void reference2_16x16_idct_2d(double *input, double *output) {
   double x;