diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-04-21 12:19:06 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-04-21 12:19:06 -0700 |
commit | e4711fa5e06323079e972cf25c8ef32a03434b54 (patch) | |
tree | 1d091919a2782d4035bbd75395fff4666e91794f /src | |
parent | cc6a068830f3800185fbe68c6777f5013248feb2 (diff) |
partial support for llvm_umul_with_overflow_i64
Diffstat (limited to 'src')
-rw-r--r-- | src/library.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/library.js b/src/library.js index 2c1bb373..10ce7c65 100644 --- a/src/library.js +++ b/src/library.js @@ -4712,6 +4712,15 @@ LibraryManager.library = { }; }, + llvm_umul_with_overflow_i64__deps: [function() { preciseI64MathUsed = 1 }], + llvm_umul_with_overflow_i64: function(xl, xh, yl, yh) { + i64Math.mul(xl, xh, yl, yh); + return { + f0: i64Math.result, + f1: 0 // XXX Need to hack support for this in long.js + }; + }, + llvm_stacksave: function() { var self = _llvm_stacksave; if (!self.LLVM_SAVEDSTACKS) { |