numpy/numpy — pull request #2886 by seberg (2013-01-05 11:09:33+00:00)
Title: BUG: Fix byteswapping for complex scalars

During a cleanup, the fast paths were invalidated because SIZEOF_LONGDOUBLE
was not defined anymore and needs to be replaced with NPY_SIZEOF_LONGDOUBLE.
The other SIZEOF macros still existed however so only complex long double
broke because it switched to the already broken fast path.

This commit fixes the fast path, and replaces all SIZEOF_ macros within
arraytypes.c.src with their corresponding NPY_SIZEOF_ macros.

---

This probably fixes issue gh-441 though that still needs checking. Note that there are still many occurrences where these macros need to be replaced. Also I noticed that the `noprefix.h` does not include `SIZEOF_COMPLEX_*`.