File tree 2 files changed +12
-0
lines changed 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -1398,10 +1398,16 @@ LibraryManager.library = {
1398
1398
llvm_sqrt_f64 : 'Math_sqrt' ,
1399
1399
llvm_pow_f32 : 'Math_pow' ,
1400
1400
llvm_pow_f64 : 'Math_pow' ,
1401
+ llvm_powi_f32 : 'Math_pow' ,
1402
+ llvm_powi_f64 : 'Math_pow' ,
1401
1403
llvm_log_f32 : 'Math_log' ,
1402
1404
llvm_log_f64 : 'Math_log' ,
1403
1405
llvm_exp_f32 : 'Math_exp' ,
1404
1406
llvm_exp_f64 : 'Math_exp' ,
1407
+ llvm_trunc_f32 : 'Math_trunc' ,
1408
+ llvm_trunc_f64 : 'Math_trunc' ,
1409
+ llvm_floor_f32 : 'Math_floor' ,
1410
+ llvm_floor_f64 : 'Math_floor' ,
1405
1411
1406
1412
round__asm : true ,
1407
1413
round__sig : 'dd' ,
Original file line number Diff line number Diff line change @@ -1746,6 +1746,11 @@ if (!Math['clz32']) Math['clz32'] = function(x) {
1746
1746
} ;
1747
1747
Math . clz32 = Math [ 'clz32' ]
1748
1748
1749
+ if ( ! Math [ 'trunc' ] ) Math [ 'trunc' ] = function ( x ) {
1750
+ return x < 0 ? Math . ceil ( x ) : Math . floor ( x ) ;
1751
+ } ;
1752
+ Math . trunc = Math [ 'trunc' ] ;
1753
+
1749
1754
var Math_abs = Math . abs ;
1750
1755
var Math_cos = Math . cos ;
1751
1756
var Math_sin = Math . sin ;
@@ -1764,6 +1769,7 @@ var Math_imul = Math.imul;
1764
1769
var Math_fround = Math . fround ;
1765
1770
var Math_min = Math . min ;
1766
1771
var Math_clz32 = Math . clz32 ;
1772
+ var Math_trunc = Math . trunc ;
1767
1773
1768
1774
// A counter of dependencies for calling run(). If we need to
1769
1775
// do asynchronous work before running, increment this and
You can’t perform that action at this time.
0 commit comments