Skip to content

Commit 84eb082

Browse files
authored
refactor: simplify expressions
Signed-off-by: Athan <[email protected]>
1 parent 711080d commit 84eb082

File tree

1 file changed

+2
-3
lines changed
  • lib/node_modules/@stdlib/math/base/special/factorial2f/lib

1 file changed

+2
-3
lines changed

lib/node_modules/@stdlib/math/base/special/factorial2f/lib/main.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,9 @@ function factorial2f( n ) {
8282
}
8383
out = float64ToFloat32( 1 );
8484
for ( i = v|0; i >= last; i -= 2|0 ) {
85-
out *= i|0; // asm type annotation
86-
out = float64ToFloat32( out );
85+
out = float64ToFloat32( out * i );
8786
}
88-
return float64ToFloat32( out );
87+
return out;
8988
}
9089

9190

0 commit comments

Comments
 (0)