Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions lib/node_modules/@stdlib/math/base/special/pow/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@
"@stdlib/math/base/assert/is-integer",
"@stdlib/math/base/special/sqrt",
"@stdlib/number/float64/base/to-words",
"@stdlib/constants/float64/num-high-word-significand-bits"
"@stdlib/constants/float64/num-high-word-significand-bits",
"@stdlib/constants/float64/nan"
]
},
{
Expand Down Expand Up @@ -87,7 +88,8 @@
"@stdlib/math/base/assert/is-integer",
"@stdlib/math/base/special/sqrt",
"@stdlib/number/float64/base/to-words",
"@stdlib/constants/float64/num-high-word-significand-bits"
"@stdlib/constants/float64/num-high-word-significand-bits",
"@stdlib/constants/float64/nan"
]
},
{
Expand Down Expand Up @@ -119,7 +121,8 @@
"@stdlib/math/base/assert/is-integer",
"@stdlib/math/base/special/sqrt",
"@stdlib/number/float64/base/to-words",
"@stdlib/constants/float64/num-high-word-significand-bits"
"@stdlib/constants/float64/num-high-word-significand-bits",
"@stdlib/constants/float64/nan"
]
}
]
Expand Down
7 changes: 4 additions & 3 deletions lib/node_modules/@stdlib/math/base/special/pow/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
#include "stdlib/constants/float64/ln_two.h"
#include "stdlib/constants/float64/exponent_bias.h"
#include "stdlib/constants/float64/high_word_significand_mask.h"
#include "stdlib/constants/float64/nan.h"
#include "stdlib/math/base/assert/is_nan.h"
#include "stdlib/math/base/assert/is_infinite.h"
#include "stdlib/math/base/assert/is_integer.h"
Expand Down Expand Up @@ -209,7 +210,7 @@ static double polyval_p( const double x ) {
*/
static double y_is_infinite( const double x, const double y ) {
if ( x == -1.0 ) {
return 0.0 / 0.0; // NaN
return STDLIB_CONSTANT_FLOAT64_NAN;
}
if ( x == 1.0 ) {
return 1.0;
Expand Down Expand Up @@ -569,7 +570,7 @@ double stdlib_base_pow( const double x, const double y ) {

xc = x;
if ( stdlib_base_is_nan( xc ) || stdlib_base_is_nan( y ) ) {
return 0.0/0.0; // NaN
return STDLIB_CONSTANT_FLOAT64_NAN;
}

// Split `y` into high and low words:
Expand Down Expand Up @@ -639,7 +640,7 @@ double stdlib_base_pow( const double x, const double y ) {
stdlib_base_is_integer( y ) == false
) {
// Signal NaN...
return 0.0/0.0;
return STDLIB_CONSTANT_FLOAT64_NAN;
}
ax = stdlib_base_abs( x );

Expand Down
Loading