Skip to content

Commit 4a6df0b

Browse files
committed
Implement some missing maths-related intrinsics
1 parent b0982ef commit 4a6df0b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/library.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1398,10 +1398,14 @@ LibraryManager.library = {
13981398
llvm_sqrt_f64: 'Math_sqrt',
13991399
llvm_pow_f32: 'Math_pow',
14001400
llvm_pow_f64: 'Math_pow',
1401+
llvm_powi_f32: 'Math_pow',
1402+
llvm_powi_f64: 'Math_pow',
14011403
llvm_log_f32: 'Math_log',
14021404
llvm_log_f64: 'Math_log',
14031405
llvm_exp_f32: 'Math_exp',
14041406
llvm_exp_f64: 'Math_exp',
1407+
llvm_trunc_f64: 'Math_trunc',
1408+
llvm_floor_f64: 'Math_floor',
14051409

14061410
round__asm: true,
14071411
round__sig: 'dd',

src/preamble.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1764,6 +1764,7 @@ var Math_imul = Math.imul;
17641764
var Math_fround = Math.fround;
17651765
var Math_min = Math.min;
17661766
var Math_clz32 = Math.clz32;
1767+
var Math_trunc = Math.trunc;
17671768

17681769
// A counter of dependencies for calling run(). If we need to
17691770
// do asynchronous work before running, increment this and

0 commit comments

Comments
 (0)