Skip to content

Commit f8b4418

Browse files
chore: update according to 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 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 65c272b commit f8b4418

File tree

4 files changed

+12
-16
lines changed

4 files changed

+12
-16
lines changed

lib/node_modules/@stdlib/math/base/special/fast/alpha-max-plus-beta-minf/lib/hypotf1a.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,10 @@ var f32 = require( '@stdlib/number/float64/base/to-float32' );
3535
* // returns <number>
3636
*/
3737
function hypotf( x, y ) {
38-
x = f32( x );
39-
y = f32( y );
4038
if ( x > y ) {
41-
return f32( x + f32( y>>>1 ) );
39+
return f32( x + ( y>>>1 ) );
4240
}
43-
return f32( f32( x>>>1 ) + y );
41+
return f32( ( x>>>1 ) + y );
4442
}
4543

4644

lib/node_modules/@stdlib/math/base/special/fast/alpha-max-plus-beta-minf/lib/hypotf1b.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ var f32 = require( '@stdlib/number/float64/base/to-float32' );
3939
* // returns <number>
4040
*/
4141
function hypotf( x, y ) {
42-
x = f32( abs( x ) );
43-
y = f32( abs( y ) );
42+
x = abs( x );
43+
y = abs( y );
4444
if ( x > y ) {
45-
return f32( x + f32( y>>>1 ) );
45+
return f32( x + ( y>>>1 ) );
4646
}
47-
return f32( f32( x>>>1 ) + y );
47+
return f32( ( x>>>1 ) + y );
4848
}
4949

5050

lib/node_modules/@stdlib/math/base/special/fast/alpha-max-plus-beta-minf/lib/hypotf2a.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,10 @@ var f32 = require( '@stdlib/number/float64/base/to-float32' );
3535
* // returns <number>
3636
*/
3737
function hypotf( x, y ) {
38-
x = f32( x );
39-
y = f32( y );
4038
if ( x > y ) {
41-
return f32( x + f32( y>>>2 ) );
39+
return f32( x + ( y>>>2 ) );
4240
}
43-
return f32( f32( x>>>2 ) + y );
41+
return f32( ( x>>>2 ) + y );
4442
}
4543

4644

lib/node_modules/@stdlib/math/base/special/fast/alpha-max-plus-beta-minf/lib/hypotf2b.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ var f32 = require( '@stdlib/number/float64/base/to-float32' );
3939
* // returns <number>
4040
*/
4141
function hypotf( x, y ) {
42-
x = f32( abs( x ) );
43-
y = f32( abs( y ) );
42+
x = abs( x );
43+
y = abs( y );
4444
if ( x > y ) {
45-
return f32( x + f32( y>>>2 ) );
45+
return f32( x + ( y>>>2 ) );
4646
}
47-
return f32( f32( x>>>2 ) + y );
47+
return f32( ( x>>>2 ) + y );
4848
}
4949

5050

0 commit comments

Comments
 (0)