Skip to content

Commit

Permalink
BUG: fix bug failure on big endian arch on Darwin.
Browse files Browse the repository at this point in the history
The macros were not updated accordingly for the 16 bytes aligned BE 8 bytes
double with the recent changes for bit twiddling with long double.
  • Loading branch information
cournape committed Dec 14, 2009
1 parent b5e472e commit 67be054
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions numpy/core/src/npymath/npy_math_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -270,19 +270,19 @@ do { \

#define LDBL_MANL_INDEX 1
#define LDBL_MANL_MASK 0xFFFFFFFF
#define LDBL_MANL_SHIFT(x) 0
#define LDBL_MANL_SHIFT 0

#define LDBL_MANH_INDEX 0
#define LDBL_MANH_MASK 0x000FFFFF
#define LDBL_MANH_SHIFT(x) 0
#define LDBL_MANH_SHIFT 0

#define LDBL_EXP_INDEX 0
#define LDBL_EXP_MASK 0x7FF00000
#define LDBL_EXP_SHIFT(x) 20
#define LDBL_EXP_SHIFT 20

#define LDBL_SIGN_INDEX 0
#define LDBL_SIGN_MASK 0x80000000
#define LDBL_SIGN_SHIFT(x) 31
#define LDBL_SIGN_SHIFT 31

#define LDBL_NBIT 0

Expand Down

0 comments on commit 67be054

Please sign in to comment.