EBGeometry
Compact, header-only C++ library for fast evaluation of signed distance functions
Loading...
Searching...
No Matches
EBGeometry::SIMD::Pack< T, N > Struct Template Reference

N lanes of T in one SIMD register. Defined only for the (T, N) pairs the compiler's flags provide (see NativeWidth()), and never in a device pass. More...

Detailed Description

template<class T, size_t N>
struct EBGeometry::SIMD::Pack< T, N >

N lanes of T in one SIMD register. Defined only for the (T, N) pairs the compiler's flags provide (see NativeWidth()), and never in a device pass.

Each specialization holds the register and provides construction from one value (broadcast), load() from and store() to memory aligned to the register size, the four arithmetic operators, and the comparisons <, > and >=, which give a mask. select(), both(), sqrt() and abs() are free functions, as for the scalar types. Every comparison is ordered: it is false where either side is NaN, as the scalar comparison is.

Template Parameters
TFloating-point type.
NLane count.

The documentation for this struct was generated from the following file: