Commit 9e3e7439 authored by Yaowu Xu's avatar Yaowu Xu Committed by Gerrit Code Review
Browse files

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

Showing with 9 additions and 0 deletions
...@@ -26,6 +26,15 @@ using libvpx_test::ACMRandom; ...@@ -26,6 +26,15 @@ using libvpx_test::ACMRandom;
namespace { 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; const double PI = 3.1415926535898;
void reference2_16x16_idct_2d(double *input, double *output) { void reference2_16x16_idct_2d(double *input, double *output) {
double x; double x;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment