E.V.E
v2023.02.15
Loading...
Searching...
No Matches
eve::fundamental_width< Type, ABI > Struct Template Reference

Detailed Description

template<typename Type, regular_abi ABI = eve::current_abi_type>
struct eve::fundamental_width< Type, ABI >

Computes the fundamental width of a given type.

Required header: #include <eve/arch/fundamental_width.hpp>

eve::fundamental_width computes the width of the smallest register able to store values of type Type for a given SIMD ABI with no uninitialized lanes.

Template Parameters
TypeType of value to assess
ABISIMD ABI to use as reference. Must models eve::regular_abi.

Member types

Name Definition
type The type of width computed for Type


Helper types

template<typename Type, regular_abi ABI = eve::current_abi_type>
using fundamental_width_t = typename fundamental_width<Type, ABI>::type;


Helper variable template

template<typename Type, regular_abi ABI = eve::current_abi_type>
inline constexpr auto fundamental_width_v = fundamental_width_t<Type, ABI>::value;
// Width template inline variable to use with functions like eve::load
template<typename Type, typename ABI = eve::current_abi_type>
inline constexpr fundamental_width<Type,ABI> const fundamental = {};
Computes the fundamental width of a given type.
Definition fundamental_width.hpp:68