Skip to content

Commit 5fe7d7b

Browse files
committed
fix: update imports
--- 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: passed - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: missing_dependencies - task: lint_c_examples status: na - task: lint_c_benchmarks status: missing_dependencies - 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 ad3d8d0 commit 5fe7d7b

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ static double tic( void ) {
7979
*
8080
* @return random number
8181
*/
82-
static float rand_double( void ) {
82+
static float rand_float( void ) {
8383
int r = rand();
8484
return (float)r / ( (float)RAND_MAX + 1.0 );
8585
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
#include "stdlib/math/base/special/powf.h"
2323
#include "stdlib/math/base/special/floorf.h"
2424
#include "stdlib/math/base/special/ceilf.h"
25-
#include "stdlib/math/base/special/log10.h"
2625
#include "stdlib/constants/float32/max_base10_exponent.h"
2726
#include "stdlib/constants/float32/min_base10_exponent_subnormal.h"
2827
#include "stdlib/constants/float32/ninf.h"
28+
#include <math.h>
2929

3030
/**
3131
* Rounds a single-precision floating-point number to the nearest power of `10` toward negative infinity.
@@ -54,7 +54,7 @@ float stdlib_base_floor10f( const float x ) {
5454
}
5555

5656
// Solve the equation `10^p = x` for `p`:
57-
p = stdlib_base_log10( xc );
57+
p = log10f( xc );
5858

5959
// Determine a power of `10` which rounds the input value toward negative infinity:
6060
if ( sign == 1.0f ) {

lib/node_modules/@stdlib/math/base/special/floor10f/test/test.native.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var PINF = require( '@stdlib/constants/float32/pinf' );
2727
var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
2828
var isNegativeZerof = require( '@stdlib/math/base/assert/is-negative-zerof' );
2929
var isPositiveZerof = require( '@stdlib/math/base/assert/is-positive-zerof' );
30-
var powf = require( '@stdlib/math/base/special/pow' );
30+
var powf = require( '@stdlib/math/base/special/powf' );
3131
var tryRequire = require( '@stdlib/utils/try-require' );
3232

3333

@@ -43,7 +43,7 @@ var opts = {
4343

4444
tape( 'main export is a function', opts, function test( t ) {
4545
t.ok( true, __filename );
46-
t.strictEqual( typeof floor10, 'function', 'main export is a function' );
46+
t.strictEqual( typeof floor10f, 'function', 'main export is a function' );
4747
t.end();
4848
});
4949

0 commit comments

Comments
 (0)