Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Unified Diff: runtime/wasm-runtime.cpp

Issue 1900213002: Subzero - WASM: Codegen fixes, better test infrastructure (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Copyright notice and TODO Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/wasm-runtime.c ('k') | src/WasmTranslator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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); }
+}
« no previous file with comments | « runtime/wasm-runtime.c ('k') | src/WasmTranslator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698