aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/library.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/library.js b/src/library.js
index 277c4574..c180b7c4 100644
--- a/src/library.js
+++ b/src/library.js
@@ -4187,6 +4187,13 @@ LibraryManager.library = {
// type_info for void.
_ZTIv: [0],
+ llvm_uadd_with_overflow_i32: function(x, y) {
+ return {
+ f0: x+y,
+ f1: 0 // We never overflow... for now
+ };
+ },
+
llvm_umul_with_overflow_i32: function(x, y) {
return {
f0: x*y,