|
ADS
Algorithms and Data Structures
|
The vector kernels of ADS on Google Highway, with ADS_WITH_HIGHWAY. More...
Files | |
| file | ADS/Simd.h |
| The vector kernels of ADS on Google Highway, with ADS_WITH_HIGHWAY: the loops over arrays that a structure of ADS hands over whole (the 1 bits of an array of words, the intersection of two sorted arrays, the hash of a long key), written once on the portable operations of Highway and compiled for every set of vector instructions that Highway knows on the machine of the compiler (SSE2 to AVX-512 on x86-64, NEON and SVE on ARM, and the others), of which Highway calls, when the program runs, the best that the processor has. | |
Macros | |
| #define | ADS_SIMD_SCALAR 0 |
| 1 to run the scalar code of every structure with ADS_WITH_HIGHWAY too, 0 (the default) to run its vector code [see the file] | |
| #define | ADS_SIMD 0 |
| 1 if the vector branches of ADS are compiled, i.e., with ADS_WITH_HIGHWAY and ADS_SIMD_SCALAR 0, 0 otherwise | |
The vector kernels of ADS on Google Highway, with ADS_WITH_HIGHWAY.
The definitions, the invariants and the costs of the area are in Theory of the foundations.
| #define ADS_SIMD 0 |
1 if the vector branches of ADS are compiled, i.e., with ADS_WITH_HIGHWAY and ADS_SIMD_SCALAR 0, 0 otherwise
| #define ADS_SIMD_SCALAR 0 |
1 to run the scalar code of every structure with ADS_WITH_HIGHWAY too, 0 (the default) to run its vector code [see the file]