diff --git a/lib/node_modules/@stdlib/math/base/special/ceiln/examples/c/example.c b/lib/node_modules/@stdlib/math/base/special/ceiln/examples/c/example.c index 78d6235f25e..6e1e7d16ad2 100644 --- a/lib/node_modules/@stdlib/math/base/special/ceiln/examples/c/example.c +++ b/lib/node_modules/@stdlib/math/base/special/ceiln/examples/c/example.c @@ -19,7 +19,7 @@ #include "stdlib/math/base/special/ceiln.h" #include -int main() { +int main( void ) { const double x[] = { 3.14, -3.14, 0.0, 0.0/0.0 }; double y; diff --git a/lib/node_modules/@stdlib/math/base/special/ceiln/src/ceiln.c b/lib/node_modules/@stdlib/math/base/special/ceiln/src/ceiln.c index f71ee15288f..86f991ebb4e 100644 --- a/lib/node_modules/@stdlib/math/base/special/ceiln/src/ceiln.c +++ b/lib/node_modules/@stdlib/math/base/special/ceiln/src/ceiln.c @@ -33,7 +33,7 @@ // VARIABLES // static const double MAX_INT = STDLIB_CONSTANT_FLOAT64_MAX_SAFE_INTEGER + 1.0; -static const double HUGE = 1.0e+308; +static const double HUGE_VALUE = 1.0e+308; // MAIN // @@ -91,11 +91,11 @@ double stdlib_base_ceiln( const double x, const int32_t n ) { // If we overflow, return `x`, as the number of digits to the right of the decimal is too small (i.e., `x` is too large / lacks sufficient fractional precision) for there to be any effect when rounding... if ( n < STDLIB_CONSTANT_FLOAT64_MIN_BASE10_EXPONENT ) { s = pow( 10.0, -( n + STDLIB_CONSTANT_FLOAT64_MAX_BASE10_EXPONENT ) ); // TODO: replace use of `pow` once have stdlib equivalent - y = ( x * HUGE ) * s; // order of operation matters! + y = ( x * HUGE_VALUE ) * s; // order of operation matters! if ( stdlib_base_is_infinite( y ) ) { return x; } - return ( stdlib_base_ceil( y ) / HUGE ) / s; + return ( stdlib_base_ceil( y ) / HUGE_VALUE ) / s; } s = pow( 10.0, -n ); // TODO: replace use of `pow` once have stdlib equivalent y = x * s; diff --git a/lib/node_modules/@stdlib/math/base/special/floorn/examples/c/example.c b/lib/node_modules/@stdlib/math/base/special/floorn/examples/c/example.c index 872bcefa56d..e3dec028710 100644 --- a/lib/node_modules/@stdlib/math/base/special/floorn/examples/c/example.c +++ b/lib/node_modules/@stdlib/math/base/special/floorn/examples/c/example.c @@ -19,7 +19,7 @@ #include "stdlib/math/base/special/floorn.h" #include -int main() { +int main( void ) { const double x[] = { 3.14, -3.14, 0.0, 0.0/0.0 }; double y; diff --git a/lib/node_modules/@stdlib/math/base/special/floorn/src/floorn.c b/lib/node_modules/@stdlib/math/base/special/floorn/src/floorn.c index a6586a28b73..9f21b604469 100644 --- a/lib/node_modules/@stdlib/math/base/special/floorn/src/floorn.c +++ b/lib/node_modules/@stdlib/math/base/special/floorn/src/floorn.c @@ -33,7 +33,7 @@ // VARIABLES // static const double MAX_INT = STDLIB_CONSTANT_FLOAT64_MAX_SAFE_INTEGER + 1.0; -static const double HUGE = 1.0e+308; +static const double HUGE_VALUE = 1.0e+308; // MAIN // @@ -134,11 +134,11 @@ double stdlib_base_floorn( const double x, const int32_t n ) { // If we overflow, return `x`, as the number of digits to the right of the decimal is too small (i.e., `x` is too large / lacks sufficient fractional precision) for there to be any effect when rounding... if ( n < STDLIB_CONSTANT_FLOAT64_MIN_BASE10_EXPONENT ) { s = pow( 10.0, - ( n + STDLIB_CONSTANT_FLOAT64_MAX_BASE10_EXPONENT ) ); // TODO: replace use of `pow` once have stdlib equivalent - y = ( x * HUGE ) * s; // order of operation matters! + y = ( x * HUGE_VALUE ) * s; // order of operation matters! if ( stdlib_base_is_infinite( y ) ) { return x; } - return ( stdlib_base_floor( y ) / HUGE ) / s; + return ( stdlib_base_floor( y ) / HUGE_VALUE ) / s; } s = pow( 10.0, -n ); // TODO: replace use of `pow` once have stdlib equivalent y = x * s; diff --git a/lib/node_modules/@stdlib/math/base/special/min/examples/c/example.c b/lib/node_modules/@stdlib/math/base/special/min/examples/c/example.c index da9ef64a712..f94c1e3bf30 100644 --- a/lib/node_modules/@stdlib/math/base/special/min/examples/c/example.c +++ b/lib/node_modules/@stdlib/math/base/special/min/examples/c/example.c @@ -17,6 +17,7 @@ */ #include "stdlib/math/base/special/min.h" +#include #include int main( void ) { @@ -31,4 +32,4 @@ int main( void ) { v = stdlib_base_min( x, y ); printf( "x: %lf, y: %lf, min(x, y): %lf\n", x, y, v ); } -} \ No newline at end of file +} diff --git a/lib/node_modules/@stdlib/math/base/special/minabs/examples/c/example.c b/lib/node_modules/@stdlib/math/base/special/minabs/examples/c/example.c index 4cc8892bbde..384eb481b3e 100644 --- a/lib/node_modules/@stdlib/math/base/special/minabs/examples/c/example.c +++ b/lib/node_modules/@stdlib/math/base/special/minabs/examples/c/example.c @@ -17,6 +17,7 @@ */ #include "stdlib/math/base/special/minabs.h" +#include #include int main( void ) { @@ -31,4 +32,4 @@ int main( void ) { v = stdlib_base_minabs( x, y ); printf( "x: %lf, y: %lf, minabs(x, y): %lf\n", x, y, v ); } -} \ No newline at end of file +}