We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48703d8 commit 457662cCopy full SHA for 457662c
lib/node_modules/@stdlib/math/base/special/floor2/src/main.c
@@ -27,7 +27,6 @@
27
#include "stdlib/constants/float64/min_base2_exponent_subnormal.h"
28
#include "stdlib/constants/float64/ninf.h"
29
30
-
31
/**
32
* Rounds a numeric value to the nearest power of two toward negative infinity.
33
*
@@ -55,6 +54,7 @@ double stdlib_base_floor2( const double x ) {
55
54
}
56
// Solve the equation `2^p = x` for `p`:
57
p = stdlib_base_log2( xc );
+
58
// If provided the smallest subnormal, no rounding possible:
59
if ( p == STDLIB_CONSTANT_FLOAT64_MIN_BASE2_EXPONENT_SUBNORMAL ) {
60
return xc;
0 commit comments