Skip to content

Commit

Permalink
simd_sort uses simd_reverse()
Browse files Browse the repository at this point in the history
  • Loading branch information
Geolm authored Jan 18, 2024
1 parent 9b9daa4 commit ac2d6df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simd.h
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ static inline simd_vector simd_sort(simd_vector input)
input = vtrn2q_f32(perm_neigh_min, perm_neigh_max);
}
{
float32x4_t perm_neigh = __builtin_shufflevector(input, input, 3, 2, 1, 0);
float32x4_t perm_neigh = simd_reverse(input);
float32x4_t perm_neigh_min = vminq_f32(input, perm_neigh);
float32x4_t perm_neigh_max = vmaxq_f32(input, perm_neigh);
input = vextq_u64(perm_neigh_min, perm_neigh_max, 1);
Expand Down

0 comments on commit ac2d6df

Please sign in to comment.