Skip to content

Commit c3f1cb0

Browse files
fix: replacing log2f with log2
1 parent 84ad75c commit c3f1cb0

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var isInfinitef = require( '@stdlib/math/base/assert/is-infinitef' );
2525
var pow = require( '@stdlib/math/base/special/pow' );
2626
var floorf = require( '@stdlib/math/base/special/floorf' );
2727
var ceilf = require( '@stdlib/math/base/special/ceilf' );
28-
var log2f = require( '@stdlib/math/base/special/log2f' );
28+
var log2 = require( '@stdlib/math/base/special/log2' );
2929
var MAX_EXP = require( '@stdlib/constants/float32/max-base2-exponent' );
3030
var MIN_EXP_SUBNORMAL = require( '@stdlib/constants/float32/min-base2-exponent-subnormal' );
3131
var PINF = require( '@stdlib/constants/float32/pinf' );
@@ -68,7 +68,7 @@ function ceil2f( x ) {
6868
sign = 1.0;
6969
}
7070
// Solve the equation `2^p = x` for `p`:
71-
p = log2f( x );
71+
p = log2( x );
7272

7373
// If provided the smallest subnormal, no rounding possible:
7474
if ( p === MIN_EXP_SUBNORMAL ) {

lib/node_modules/@stdlib/math/base/special/ceil2f/mainfest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"@stdlib/math/base/special/pow",
4343
"@stdlib/math/base/special/floorf",
4444
"@stdlib/math/base/special/ceilf",
45-
"@stdlib/math/base/special/log2f",
45+
"@stdlib/math/base/special/log2",
4646
"@stdlib/constants/float32/max-base2-exponent",
4747
"@stdlib/constants/float32/min-base2-exponent-subnormal",
4848
"@stdlib/constants/float32/pinf"
@@ -64,7 +64,7 @@
6464
"@stdlib/math/base/special/pow",
6565
"@stdlib/math/base/special/floorf",
6666
"@stdlib/math/base/special/ceilf",
67-
"@stdlib/math/base/special/log2f",
67+
"@stdlib/math/base/special/log2",
6868
"@stdlib/constants/float32/max-base2-exponent",
6969
"@stdlib/constants/float32/min-base2-exponent-subnormal",
7070
"@stdlib/constants/float32/pinf"
@@ -86,7 +86,7 @@
8686
"@stdlib/math/base/special/pow",
8787
"@stdlib/math/base/special/floorf",
8888
"@stdlib/math/base/special/ceilf",
89-
"@stdlib/math/base/special/log2f",
89+
"@stdlib/math/base/special/log2",
9090
"@stdlib/constants/float32/max-base2-exponent",
9191
"@stdlib/constants/float32/min-base2-exponent-subnormal",
9292
"@stdlib/constants/float32/pinf"

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include "stdlib/math/base/special/pow.h"
2323
#include "stdlib/math/base/special/floorf.h"
2424
#include "stdlib/math/base/special/ceilf.h"
25-
#include "stdlib/math/base/special/log2f.h"
25+
#include "stdlib/math/base/special/log2.h"
2626
#include "stdlib/constants/float32/max_base2_exponent.h"
2727
#include "stdlib/constants/float32/min_base2_exponent_subnormal.h"
2828
#include "stdlib/constants/float32/pinf.h"
@@ -54,7 +54,8 @@ float stdlib_base_ceil2f( const float x ) {
5454
}
5555

5656
// Solve the equation `2^p = x` for `p`:
57-
p = stdlib_base_log2f( xc );
57+
//need to add log2f
58+
p = stdlib_base_log2( xc );
5859

5960
// If provided the smallest subnormal, no rounding possible:
6061
if ( p == STDLIB_CONSTANT_FLOAT32_MIN_BASE2_EXPONENT_SUBNORMAL ) {

0 commit comments

Comments
 (0)