Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Fix for npyv_orc_b8 and npyv_xnor_b8 for s390x (z13) #21748

Merged
merged 2 commits into from
Jun 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 7 additions & 2 deletions numpy/core/src/common/simd/vec/operators.h
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,13 @@ NPY_FINLINE npyv_f64 npyv_not_f64(npyv_f64 a)
// ANDC, ORC and XNOR
#define npyv_andc_u8 vec_andc
#define npyv_andc_b8 vec_andc
#define npyv_orc_b8 vec_orc
#define npyv_xnor_b8 vec_eqv
#if defined(NPY_HAVE_VXE) || defined(NPY_HAVE_VSX)
#define npyv_orc_b8 vec_orc
#define npyv_xnor_b8 vec_eqv
#else
#define npyv_orc_b8(A, B) npyv_or_b8(npyv_not_b8(B), A)
#define npyv_xnor_b8(A, B) npyv_not_b8(npyv_xor_b8(B, A))
#endif
seiko2plus marked this conversation as resolved.
Show resolved Hide resolved

/***************************
* Comparison
Expand Down