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 e879e1f commit a4f9359Copy full SHA for a4f9359
1 file changed
quaddtype/numpy_quaddtype/src/ops.hpp
@@ -1662,6 +1662,12 @@ ld_logical_not(const long double *a)
1662
static inline double
1663
cast_sleef_to_double(const Sleef_quad in)
1664
{
1665
+ if (quad_isnan(&in)) {
1666
+ return quad_signbit(&in) ? -NAN : NAN;
1667
+ }
1668
+ if (quad_isinf(&in)) {
1669
+ return quad_signbit(&in) ? -INFINITY : INFINITY;
1670
1671
if (Sleef_icmpeqq1(in, QUAD_PRECISION_ZERO))
1672
1673
return quad_signbit(&in) ? -0.0 : 0.0;
0 commit comments