Skip to content

Commit 690f21a

Browse files
committed
feat!: add implementation of stdlib/math/base/special/minmaxabsf
This commit adds the implementation of stdlib/math/base/special/minmaxabsf function. It includes a README.md file, benchmarks, tests, examples. The minmaxabsf function returns the minimum and maximum single-precision floating-point values for any two numbers. --- 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: na - 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: passed - 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 44e5bc7 commit 690f21a

File tree

1 file changed

+1
-1
lines changed
  • lib/node_modules/@stdlib/math/base/special/cbrtf/benchmark/c/native

1 file changed

+1
-1
lines changed

Diff for: lib/node_modules/@stdlib/math/base/special/cbrtf/benchmark/c/native/benchmark.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ static double benchmark( void ) {
102102

103103
t = tic();
104104
for ( i = 0; i < ITERATIONS; i++ ) {
105-
y = stdlib_base_cbrtf( x[ i%x.length ] );
105+
y = stdlib_base_cbrtf( x[ i%(sizeof(x)/sizeof(x[0])) ] );
106106
if ( y != y ) {
107107
printf( "should not return NaN\n" );
108108
break;

0 commit comments

Comments
 (0)