Skip to content

Commit b0878cf

Browse files
committed
copysign is mandatory, no HAVE_COPYSIGN is defined
1 parent 37b2cf1 commit b0878cf

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

numpy/core/src/npymath/ieee754.c.src

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,6 @@
88
#include "npy_math_private.h"
99
#include "numpy/utils.h"
1010

11-
#ifndef HAVE_COPYSIGN
12-
double npy_copysign(double x, double y)
13-
{
14-
npy_uint32 hx, hy;
15-
GET_HIGH_WORD(hx, x);
16-
GET_HIGH_WORD(hy, y);
17-
SET_HIGH_WORD(x, (hx & 0x7fffffff) | (hy & 0x80000000));
18-
return x;
19-
}
20-
#endif
21-
2211
/*
2312
The below code is provided for compilers which do not yet provide C11 compatibility (gcc 4.5 and older)
2413
*/

0 commit comments

Comments
 (0)