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 c304f6f commit 37b2cf1Copy full SHA for 37b2cf1
numpy/core/src/npymath/npy_math_internal.h.src
@@ -98,7 +98,7 @@ NPY_INPLACE double npy_log2(double x)
98
{
99
#ifdef HAVE_LOG2
100
return log2(x);
101
-#elif defined(HAVE_FREXP)
+#else
102
if (!npy_isfinite(x) || x <= 0.) {
103
/* special value result */
104
return npy_log(x);
@@ -123,9 +123,6 @@ NPY_INPLACE double npy_log2(double x)
123
return log(m) / log(2.0) + e;
124
}
125
126
-#else
127
- /* does not provide int(log(2**i)) == i */
128
- return NPY_LOG2E * npy_log(x);
129
#endif
130
131
0 commit comments