128#ifndef __ADS_VectorQuickSort
129 #define __ADS_VectorQuickSort
149#include <type_traits>
156#ifndef ADS_VECTOR_SORT
157 #define ADS_VECTOR_SORT ADS_SIMD
161 #include <hwy/contrib/sort/vqsort.h>
179 ( std::is_integral_v< T > || std::is_floating_point_v< T > ) &&
180 ( (
sizeof( T ) == 4 ) || (
sizeof( T ) == 8 ) ) &&
181 ( ! std::is_same_v< T , bool > );
193 std::remove_cvref_t< Store > > >
197template< VectorKey T >
230template< VectorKey T >
242 requires requires( std::vector< std::ranges::range_value_t< R > > & v ,
249 const auto f = [ & ](
auto & v ) ->
decltype(
auto ) {
252 return( detail::sortRange( A , f ) );
263#include "ADS/sort/impl/VectorQuickSort.tpp"
The contracts of ADS: the preconditions, the postconditions and the invariants of the operations,...
The prefetch of a line of the cache, beyond the book: ADS::prefetch( p ) asks the processor to bring ...
The vector kernels of ADS on Google Highway, with ADS_WITH_HIGHWAY: the loops over arrays that a stru...
The checks of the contracts of the sorts [see Contract.h]: a copy of the input kept only when the aud...
a range that the sorts take beside std::vector and std::span: random access, sized,...
Definition Sorted.h:153
the storage on which the sorts work in place, by reference: a std::vector or a std::span of its items...
Definition Sorted.h:178
the types that vectorQuickSort() sorts: integers and floating point numbers of 32 or 64 bits
Definition VectorQuickSort.h:178
void vectorQuickSort(Store &&A)
the quicksort of in the lanes of the vector registers, by the natural order (the total order of IEEE...
constexpr bool kVectorSort
true if vectorQuickSort() runs in the vectors of the processor, by the quicksort of Highway,...
Definition VectorQuickSort.h:173
#define ADS_VECTOR_SORT
1 if the sort is the quicksort of Highway on the vectors of the processor, 0 if the portable code; by...
Definition VectorQuickSort.h:157