Skip to content

Commit 59506ac

Browse files
committed
bench: fix use of negative spaces
--- 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 508c857 commit 59506ac

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

lib/node_modules/@stdlib/math/base/special/cabs2f/benchmark/c/native/benchmark.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,14 @@ static double benchmark( void ) {
102102
stdlib_complex64_t z[ 100 ];
103103

104104
for ( i = 0; i < 100; i++ ) {
105-
re = ( 1000.0f * rand_float() ) - 500.0f;
106-
im = ( 1000.0f * rand_float() ) - 500.0f;
105+
re = ( 1000.0f*rand_float() ) - 500.0f;
106+
im = ( 1000.0f*rand_float() ) - 500.0f;
107107
z[ i ] = stdlib_complex64( re, im );
108108
}
109109

110110
t = tic();
111111
for ( i = 0; i < ITERATIONS; i++ ) {
112-
y = stdlib_base_cabs2f( z[ i % 100 ] );
112+
y = stdlib_base_cabs2f( z[ i%100 ] );
113113
if ( y != y ) {
114114
printf( "should not return NaN\n" );
115115
break;

0 commit comments

Comments
 (0)