Skip to content

Commit fcfbddf

Browse files
committed
fix: use asm type annotation
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent e9cd399 commit fcfbddf

File tree

2 files changed

+4
-4
lines changed
  • lib/node_modules/@stdlib/math/base/special

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ function log10( x ) {
119119
return NaN;
120120
}
121121
toWords.assign( x, WORDS, 1, 0 );
122-
hx = WORDS[ 0 ];
122+
hx = WORDS[ 0 ] | 0; // asm type annotation
123123
lx = WORDS[ 1 ];
124124
k = 0|0; // asm type annotation
125125

@@ -132,7 +132,7 @@ function log10( x ) {
132132

133133
// Subnormal number, scale up x:
134134
x *= TWO54;
135-
hx = getHighWord( x );
135+
hx = getHighWord( x ) | 0; // asm type annotation
136136
}
137137
if ( hx >= HIGH_MAX_NORMAL_EXP ) {
138138
return x + x;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ function log2( x ) {
116116
return NaN;
117117
}
118118
toWords.assign( x, WORDS, 1, 0 );
119-
hx = WORDS[ 0 ];
119+
hx = WORDS[ 0 ] | 0; // asm type annotation
120120
lx = WORDS[ 1 ];
121121
k = 0|0; // asm type annotation
122122
if ( hx < HIGH_MIN_NORMAL_EXP ) {
@@ -128,7 +128,7 @@ function log2( x ) {
128128

129129
// Subnormal number, scale up x:
130130
x *= TWO54;
131-
hx = getHighWord( x );
131+
hx = getHighWord( x ) | 0; // asm type annotation
132132
}
133133
if ( hx >= HIGH_MAX_NORMAL_EXP ) {
134134
return x + x;

0 commit comments

Comments
 (0)