[Numpy-svn] [numpy/numpy] 19953b: BUG: Fix byteswapping for complex scalars

GitHub noreply@github....
Thu Jan 10 14:09:16 CST 2013


  Branch: refs/heads/maintenance/1.7.x
  Home:   https://github.com/numpy/numpy
  Commit: 19953baf67fed3ec951665ba8414f162edd983f4
      https://github.com/numpy/numpy/commit/19953baf67fed3ec951665ba8414f162edd983f4
  Author: Sebastian Berg <sebastian@sipsolutions.net>
  Date:   2013-01-09 (Wed, 09 Jan 2013)

  Changed paths:
    M numpy/core/src/multiarray/arraytypes.c.src
    M numpy/core/tests/test_regression.py

  Log Message:
  -----------
  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.


  Commit: d4a3937621a7df53c5ffa75b25b94a7097e8b2de
      https://github.com/numpy/numpy/commit/d4a3937621a7df53c5ffa75b25b94a7097e8b2de
  Author: Charles Harris <charlesr.harris@gmail.com>
  Date:   2013-01-09 (Wed, 09 Jan 2013)

  Changed paths:
    M numpy/core/src/multiarray/arraytypes.c.src
    M numpy/core/src/multiarray/conversion_utils.c
    M numpy/core/src/multiarray/getset.c
    M numpy/core/src/multiarray/iterators.c
    M numpy/core/src/multiarray/mapping.h
    M numpy/core/src/multiarray/multiarraymodule.c
    M numpy/core/src/multiarray/scalartypes.c.src
    M numpy/core/src/npymath/_signbit.c
    M numpy/core/src/scalarmathmodule.c.src

  Log Message:
  -----------
  BUG: Replace unprefixed SIZEOF_* macros with prefixed versions.

The sources don't define NPY_NO_PREFIX and consequently none of the
unprefixed macros are defined. Using them can lead to some unexpected
results.


  Commit: 4e179f0502018e2ca4e9d55a686e4fbc46454011
      https://github.com/numpy/numpy/commit/4e179f0502018e2ca4e9d55a686e4fbc46454011
  Author: Ondřej Čertík <ondrej.certik@gmail.com>
  Date:   2013-01-10 (Thu, 10 Jan 2013)

  Changed paths:
    M numpy/core/src/multiarray/arraytypes.c.src
    M numpy/core/src/multiarray/conversion_utils.c
    M numpy/core/src/multiarray/getset.c
    M numpy/core/src/multiarray/iterators.c
    M numpy/core/src/multiarray/mapping.h
    M numpy/core/src/multiarray/multiarraymodule.c
    M numpy/core/src/multiarray/scalartypes.c.src
    M numpy/core/src/npymath/_signbit.c
    M numpy/core/src/scalarmathmodule.c.src
    M numpy/core/tests/test_regression.py

  Log Message:
  -----------
  Merge pull request #2900 from certik/backport2886and7

Backport2886and7


Compare: https://github.com/numpy/numpy/compare/ac69b7cb6aff...4e179f050201


More information about the Numpy-svn mailing list