Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 //===- subzero/runtime/wasm-runtime.cpp - Subzero WASM runtime source -----===// | |
| 2 // | |
| 3 // The Subzero Code Generator | |
| 4 // | |
| 5 // This file is distributed under the University of Illinois Open Source | |
| 6 // License. See LICENSE.TXT for details. | |
| 7 // | |
| 8 //===----------------------------------------------------------------------===// | |
| 9 // | |
| 10 // This file implements the system calls required by the libc that is included | |
| 11 // in WebAssembly programs. | |
| 12 // | |
| 13 //===----------------------------------------------------------------------===// | |
| 14 | |
| 15 // 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.
| |
| 16 | |
| 17 #include <cmath> | |
| 18 | |
| 19 namespace env { | |
| 20 double floor(double X) { return std::floor(X); } | |
| 21 | |
| 22 float floor(float X) { return std::floor(X); } | |
| 23 } | |
| OLD | NEW |