Skip to content

Commit

Permalink
Remove non-working MMX specialization from simde_vmin_s16
Browse files Browse the repository at this point in the history
  • Loading branch information
M-HT authored and mr-c committed Sep 26, 2023
1 parent 653aba8 commit 6858b92
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions simde/arm/neon/min.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,10 @@ simde_vmin_s16(simde_int16x4_t a, simde_int16x4_t b) {
a_ = simde_int16x4_to_private(a),
b_ = simde_int16x4_to_private(b);

#if defined(SIMDE_X86_MMX_NATIVE)
r_.m64 = _mm_sub_pi16(a_.m64, _mm_subs_pu16(b_.m64));
#else
SIMDE_VECTORIZE
for (size_t i = 0 ; i < (sizeof(r_.values) / sizeof(r_.values[0])) ; i++) {
r_.values[i] = (a_.values[i] < b_.values[i]) ? a_.values[i] : b_.values[i];
}
#endif
SIMDE_VECTORIZE
for (size_t i = 0 ; i < (sizeof(r_.values) / sizeof(r_.values[0])) ; i++) {
r_.values[i] = (a_.values[i] < b_.values[i]) ? a_.values[i] : b_.values[i];
}

return simde_int16x4_from_private(r_);
#endif
Expand Down

0 comments on commit 6858b92

Please sign in to comment.