Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d90c6e0

Browse files
committed
BUG: fix undefined ldexpl and frexpl with msvc
The functions are macros in msvc which we undefine and redeclare in npy_math. Since we now generate the ldexpl and frexpl ufuncs in numpygh-4852 this was broken by the extra logic for them in npy_config.h
1 parent df9db6e commit d90c6e0

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

numpy/core/src/private/npy_config.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,6 @@
2121
*/
2222
#define NPY_MAX_COPY_ALIGNMENT 16
2323

24-
/* Safe to use ldexp and frexp for long double for MSVC builds */
25-
#if (NPY_SIZEOF_LONGDOUBLE == NPY_SIZEOF_DOUBLE) || defined(_MSC_VER)
26-
#ifdef HAVE_LDEXP
27-
#define HAVE_LDEXPL 1
28-
#endif
29-
#ifdef HAVE_FREXP
30-
#define HAVE_FREXPL 1
31-
#endif
32-
#endif
33-
3424
/* Disable broken Sun Workshop Pro math functions */
3525
#ifdef __SUNPRO_C
3626
#undef HAVE_ATAN2

0 commit comments

Comments
 (0)