Skip to content
Open
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/minf/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
"@stdlib/math/base/napi/binary",
"@stdlib/math/base/assert/is-nanf",
"@stdlib/math/base/assert/is-negative-zerof",
"@stdlib/constants/float32/ninf"
"@stdlib/constants/float32/ninf",
"@stdlib/constants/float32/nan"
]
},
{
Expand All @@ -55,7 +56,8 @@
"dependencies": [
"@stdlib/math/base/assert/is-nanf",
"@stdlib/math/base/assert/is-negative-zerof",
"@stdlib/constants/float32/ninf"
"@stdlib/constants/float32/ninf",
"@stdlib/constants/float32/nan"
]
},
{
Expand All @@ -71,7 +73,8 @@
"dependencies": [
"@stdlib/math/base/assert/is-nanf",
"@stdlib/math/base/assert/is-negative-zerof",
"@stdlib/constants/float32/ninf"
"@stdlib/constants/float32/ninf",
"@stdlib/constants/float32/nan"
]
}
]
Expand Down
3 changes: 2 additions & 1 deletion lib/node_modules/@stdlib/math/base/special/minf/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include "stdlib/math/base/assert/is_nanf.h"
#include "stdlib/math/base/assert/is_negative_zerof.h"
#include "stdlib/constants/float32/ninf.h"
#include "stdlib/constants/float32/nan.h"

/**
* Returns the minimum single-precision floating-point number.
Expand All @@ -38,7 +39,7 @@
*/
float stdlib_base_minf( const float x, const float y ) {
if ( stdlib_base_is_nanf( x ) || stdlib_base_is_nanf( y ) ) {
return 0.0f / 0.0f; // NaN
return STDLIB_CONSTANT_FLOAT32_NAN;
}
if ( x == STDLIB_CONSTANT_FLOAT32_NINF || y == STDLIB_CONSTANT_FLOAT32_NINF ) {
return STDLIB_CONSTANT_FLOAT32_NINF;
Expand Down
Loading