nlib
SimdAlgorithm.h File Reference

Defines the function templates that handle the character strings and byte arrays used in SIMD instructions. More...

Go to the source code of this file.

Namespaces

 nn::nlib
 Implements common features and features that are highly platform-dependent. Also refer to nlib Platform APIs. nlib_ns is an alias.
 
 nn::nlib::simd
 Implements the classes and functions for SIMD computations on integers and single-precision, floating-point, numbers.
 

Functions

template<size_t NumElem>
void nn::nlib::simd::MergeSortUint32A16 (uint32_t *data)
 Uses SIMD to merge sort a sequence of 32-bit unsigned integers. More...
 
template<class PRED >
const void * nn::nlib::simd::nlib_memchr_pred (const void *s, PRED pred, size_t n)
 A function template for examining the bytes in byte strings using SIMD instructions. More...
 
template<class PRED >
const void * nn::nlib::simd::nlib_memchr_pred_not (const void *s, PRED pred, size_t n)
 A function template for examining the bytes in byte strings using SIMD instructions. More...
 
i128 nn::nlib::simd::IsAlpha (i128 c) noexcept
 Masks alphabetic letters in c.
 
i128 nn::nlib::simd::IsDigit (i128 c) noexcept
 Masks the characters 0 though 9 in c.
 
i128 nn::nlib::simd::IsAlnum (i128 c) noexcept
 Masks alphabetic letters or the characters 0 though 9 in c.
 
i128 nn::nlib::simd::IsSpace (i128 c) noexcept
 Masks space characters (0x20, 0x09, 0x0A, 0x0D) in c.
 
i128 nn::nlib::simd::IsXdigit (i128 c) noexcept
 Masks hexadecimal characters in c.
 

Detailed Description

Defines the function templates that handle the character strings and byte arrays used in SIMD instructions.

Definition in file SimdAlgorithm.h.