Skip to content

Commit

Permalink
feat:- add-ceilnf
Browse files Browse the repository at this point in the history
  • Loading branch information
Neerajpathak07 committed Dec 20, 2024
1 parent 582661f commit c2f50c3
Show file tree
Hide file tree
Showing 24 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@license Apache-2.0
Copyright (c) 2018 The Stdlib Authors.
Copyright (c) 2024 The Stdlib Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ static double benchmark( void ) {
t = tic();
for ( i = 0; i < ITERATIONS; i++ ) {
x = ( 1000.0*rand_float() ) - 500.0f;
y = stdlib_base_ceilnf( x, -2f );
y = stdlib_base_ceilnf( x, -2 );
if ( y != y ) {
printf( "should not return NaN\n" );
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ int main( void ) {
float y;
int i;
for ( i = 0; i < 4; i++ ) {
y = stdlib_base_ceilnf( x[ i ], -2f );
printf( "ceilnf(%f, -2f) = %f\n", x[ i ], y );
y = stdlib_base_ceilnf( x[ i ], -2 );
printf( "ceilnf(%f, -2) = %f\n", x[ i ], y );
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* var v = ceilnf( 3.141592653589793, -2 );
* // returns 3.15
*
* // If n = 0, `ceilnf` behaves like `ceil`:
* // If n = 0, `ceilnf` behaves like `ceilf`:
* v = ceilnf( 3.141592653589793, 0 );
* // returns 4.0
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ var HUGE = 1.0e+308;
* // returns 3.15
*
* @example
* // If n = 0, `ceilnf` behaves like `ceil`:
* // If n = 0, `ceilnf` behaves like `ceilf`:
* var v = ceilnf( 3.141592653589793, 0 );
* // returns 4.0
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ var addon = require( './../src/addon.node' );
* // returns 3.15
*
* @example
* // If n = 0, `ceilnf` behaves like `ceil`:
* // If n = 0, `ceilnf` behaves like `ceilf`:
* var v = ceilnf( 3.141592653589793, 0 );
* // returns 4.0
*
Expand Down

0 comments on commit c2f50c3

Please sign in to comment.