Skip to content

Commit 9917461

Browse files
committed
llvm_ctlz_i64
1 parent c92fc2c commit 9917461

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/library.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4751,6 +4751,13 @@ LibraryManager.library = {
47514751
return 32;
47524752
},
47534753

4754+
llvm_ctlz_i64__deps: ['llvm_ctlz_i32'],
4755+
llvm_ctlz_i64: function(l, h) {
4756+
var ret = _llvm_ctlz_i32(h);
4757+
if (ret == 32) ret += _llvm_ctlz_i32(l);
4758+
return ret;
4759+
},
4760+
47544761
llvm_trap: function() {
47554762
throw 'trap! ' + new Error().stack;
47564763
},

0 commit comments

Comments
 (0)