Chromium Code Reviews| Index: runtime/wasm-runtime.cpp |
| diff --git a/runtime/wasm-runtime.cpp b/runtime/wasm-runtime.cpp |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..08ed9db373c69ed9e2bd3406ebc21468928d6590 |
| --- /dev/null |
| +++ b/runtime/wasm-runtime.cpp |
| @@ -0,0 +1,23 @@ |
| +//===- subzero/runtime/wasm-runtime.cpp - Subzero WASM runtime source -----===// |
| +// |
| +// The Subzero Code Generator |
| +// |
| +// This file is distributed under the University of Illinois Open Source |
| +// License. See LICENSE.TXT for details. |
| +// |
| +//===----------------------------------------------------------------------===// |
| +// |
| +// This file implements the system calls required by the libc that is included |
| +// in WebAssembly programs. |
| +// |
| +//===----------------------------------------------------------------------===// |
| + |
| +// TODO (eholk): port wasm-runtime.c into this file, using C++ name mangling. |
|
John
2016/04/20 19:18:13
for the time being, why don't you move the content
Eric Holk
2016/04/20 19:51:57
Done.
|
| + |
| +#include <cmath> |
| + |
| +namespace env { |
| +double floor(double X) { return std::floor(X); } |
| + |
| +float floor(float X) { return std::floor(X); } |
| +} |