Skip to content

Commit

Permalink
Merge pull request #21748 from pradghos/s390x_numpy_fix
Browse files Browse the repository at this point in the history
BUG: Fix for npyv_orc_b8 and npyv_xnor_b8 for s390x (z13)
  • Loading branch information
seiko2plus committed Jun 14, 2022
2 parents abc26a3 + 463d133 commit 78f8386
Showing 1 changed file with 7 additions and 2 deletions.
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

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

0 comments on commit 78f8386

Please sign in to comment.