Skip to content

Commit ebf5836

Browse files
committed
chore: code review
--- 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_pkg_readmes status: na - task: lint_markdown_docs status: na - 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: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 21f5705 commit ebf5836

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • lib/node_modules/@stdlib/math/base/special/log10f/lib

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ function log10f( x ) {
123123
return NaN;
124124
}
125125
x = f32( x );
126-
hx = toWordf( x ) | 0;
126+
hx = toWordf( x ) |0; // asm type annotation
127127
k = 0;
128128

129129
// x < 2**-126
@@ -135,7 +135,7 @@ function log10f( x ) {
135135

136136
// Subnormal number, scale up x:
137137
x = f32( x * TWO25 );
138-
hx = toWordf( x ) | 0;
138+
hx = toWordf( x ) |0; // asm type annotation
139139
}
140140
if ( hx >= FLOAT32_EXPONENT_MASK ) {
141141
return f32( x + x );
@@ -145,7 +145,7 @@ function log10f( x ) {
145145
}
146146
k += ( ( hx >> 23 ) - FLOAT32_EXPONENT_BIAS );
147147
hx &= FLOAT32_SIGNIFICAND_MASK;
148-
i = ( ( hx + NORM_OFFSET ) & MIN_NORMAL_WORD ) | 0;
148+
i = ( ( hx + NORM_OFFSET ) & MIN_NORMAL_WORD ) |0; // asm type annotation
149149

150150
// Normalize x or x/2:
151151
x = fromWordf( hx | ( i ^ ONE_WORD ) );
@@ -156,7 +156,7 @@ function log10f( x ) {
156156
r = kernelLog1pf( f );
157157

158158
hi = f32( f - hfsq );
159-
hx = toWordf( hi ) | 0;
159+
hx = toWordf( hi ) |0; // asm type annotation
160160
hi = fromWordf( hx & HI_MASK );
161161
lo = f32( f32( f - hi ) - hfsq + r );
162162
return f32( f32( y * LOG10_2LO ) + f32( f32( f32( lo + hi ) * IVLN10LO ) + f32( f32( lo * IVLN10HI ) + f32( f32( hi * IVLN10HI ) + f32( y * LOG10_2HI ) ) ) ) ); // eslint-disable-line max-len

0 commit comments

Comments
 (0)