summaryrefslogtreecommitdiff
path: root/numpy/array_api/_elementwise_functions.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2022-05-06 15:38:53 +0200
committerSebastian Berg <sebastian@sipsolutions.net>2022-05-06 15:42:38 +0200
commit3257ab09fa557625f7f38ba96d9d8e6ba5470822 (patch)
tree311b7d13aa370bd617681247c5cd36e4dd3dd427 /numpy/array_api/_elementwise_functions.py
parent4c3958b98913e6d77c751cd4556efbb27e43c446 (diff)
downloadnumpy-3257ab09fa557625f7f38ba96d9d8e6ba5470822.tar.gz
MAINT: Mark `npy_memchr` with `no_sanitize("alignment")` on clang
Clangs sanitizer reports unaligned access here, which is correct but intentional. It may well be that the code would be better of trying to avoid this unaligned access (and rather vectorizing harder). But, this is a bit of a tricky choice, since we have to optimize for different use-cases (in particular very short scans may be interesting). So changing this would best be done together with some more careful benchmarks. See also gh-21117, which introduced manual loop unrolling to avoid the unaligned access. Closes gh-21116
Diffstat (limited to 'numpy/array_api/_elementwise_functions.py')
0 files changed, 0 insertions, 0 deletions