numpy/numpy — pull request #3517 by juliantaylor (2013-07-11 18:53:30+00:00)
Title: ENH: use memchr for unit stride all/any

Improves performance by a factor of two with GNU libc on a SSE2 machine.
Requires that boolean true == 1 for any.

The obsolete handvectorized code in simd.inc.src could be improved to
the same performance via unrolling once and using pminub/pmaxub to save
one slow pmovmskb instruction but using the libc routine has the
advantage that it will make best use of the underlying hardware no
matter how numpy was compiled.