/* Sorting for SIMD types Copyright 2024 Ahmet Inan */ #pragma once #include "sort.hh" template static inline SIMD::uint_type, WIDTH> vorder(SIMD a) { SIMD::uint_type, WIDTH> p; CODE::insertion_sort(p.v, a.v, WIDTH); return p; } template static inline SIMD vsort(SIMD a) { CODE::insertion_sort(a.v, WIDTH); return a; }