Skip to content

Commit 47f4fb0

Browse files
refactor: update math/base/special/hypotf to follow latest project conventions
--- type: pre_push_report description: Results of running various checks prior to pushing changes. report: - task: run_javascript_examples status: passed - task: run_c_examples status: na - task: run_cpp_examples status: na - task: run_javascript_readme_examples status: failed ---
1 parent 8900fbc commit 47f4fb0

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

lib/node_modules/@stdlib/math/base/special/hypotf/src/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ float stdlib_base_hypotf( const float x, const float y ) {
4141
return 0.0f / 0.0f; // NaN
4242
}
4343
if ( stdlib_base_is_infinitef( x ) || stdlib_base_is_infinitef( y ) ) {
44-
return INFINITY;
44+
return STDLIB_CONSTANT_FLOAT32_PINF;
4545
}
4646
a = x;
4747
b = y;
@@ -60,5 +60,5 @@ float stdlib_base_hypotf( const float x, const float y ) {
6060
return 0.0f;
6161
}
6262
b /= a;
63-
return a * stdlib_base_sqrtf( 1.0f + (b*b) );
63+
return a * stdlib_base_sqrtf( 1.0f + ( b * b ) );
6464
}

0 commit comments

Comments
 (0)