Skip to content

Commit e5fa5b2

Browse files
committed
chore: 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: passed - 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: passed - 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 27e7f1c commit e5fa5b2

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

lib/node_modules/@stdlib/math/base/special/exp2f/docs/repl.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
{{alias}}( x )
3-
Evaluates the base 2 exponential function in
4-
single-precision floating-point format.
3+
Evaluates the base 2 exponential function in single-precision
4+
floating-point format.
55

66
Parameters
77
----------

lib/node_modules/@stdlib/math/base/special/exp2f/examples/c/example.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
#include <stdio.h>
2222

2323
int main( void ) {
24-
float x;
25-
float v;
26-
int i;
24+
float x;
25+
float v;
26+
int i;
2727

28-
for ( i = 0; i < 100; i++ ) {
29-
x = ( ( (float)rand() / (float)RAND_MAX ) * 100.0f ) - 50.0f;
30-
v = stdlib_base_exp2f( x );
31-
printf( "2^%f = %f\n", x, v );
32-
}
28+
for ( i = 0; i < 100; i++ ) {
29+
x = ( ( (float)rand() / (float)RAND_MAX ) * 100.0f ) - 50.0f;
30+
v = stdlib_base_exp2f( x );
31+
printf( "2^%f = %f\n", x, v );
32+
}
3333
}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,9 @@ function exp2f( x ) {
106106
return PINF;
107107
}
108108
if ( x < FLOAT32_MIN_BASE2_EXPONENT ) {
109-
return float64ToFloat32( 0.0 );
109+
return 0.0;
110110
}
111+
111112
// Separate into integer and fractional parts...
112113
n = float64ToFloat32( roundf( x ) );
113114
x -= float64ToFloat32( n );

0 commit comments

Comments
 (0)