Skip to content

Commit 76dcc7e

Browse files
committed
chore: apply f32 emulation to return statements
--- 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 89df9fc commit 76dcc7e

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ function tanf( x ) {
126126
if ( ix < SMALL_WORD ) {
127127
return f32( x );
128128
}
129-
return kernelTanf( x, 1 );
129+
return f32( kernelTanf( x, 1 ) );
130130
}
131131
// Case: |x| ~<= 5π/4
132132
if ( ix <= FIVE_PIO4_WORD ) {
@@ -162,7 +162,7 @@ function tanf( x ) {
162162
}
163163
// Argument reduction...
164164
n = rempio2f( f32( x ), Y );
165-
return kernelTanf( Y[ 0 ], 1 - ( ( n & 1 ) << 1 ) );
165+
return f32( kernelTanf( Y[ 0 ], 1 - ( ( n & 1 ) << 1 ) ) );
166166
}
167167

168168

0 commit comments

Comments
 (0)