Skip to content

Types


cpu_name function

static const char *cpu_name(cpu_t set)

Returns name of the cpu instruction set


cpu_t enum

enum class cpu_t : int

An enumeration representing cpu instruction set


get_first typedef

get_first = cometa::fn_get_first

Function that returns its first argument and ignores all other arguments


get_second typedef

get_second = cometa::fn_get_second

Function that returns its second argument and ignores all other arguments


get_third typedef

get_third = cometa::fn_get_third

Function that returns its third argument and ignores all other arguments


initialvalue class

template <typename T> initialvalue

Used to determine the initial value for reduce functions


make_vector function

template <
    typename Type = void, typename Arg, typename... Args,
    size_t N = (sizeof...(Args) + 1),
    typename SubType =
        fix_type<typename internal::conditional_common<
            std::is_void_v<Type>, Type, Arg,
            Args...>::type>>
constexpr vec<SubType, N> make_vector(const Arg &x,
                                      const Args &...rest)

Create vector from scalar values

CHECK( make_vector( 1, 2, 3, 4 ) == i32x4{1, 2, 3, 4} );


noop typedef

noop = cometa::fn_noop

Function that returns void and ignores all its arguments


pass_through typedef

pass_through = cometa::fn_pass_through

Function that returns its first argument


returns typedef

template <typename T> returns = cometa::fn_returns<T>

Function that returns value-initialization of type T and ignores all its arguments


returns = cometa::fn_returns<T>

Function that returns value-initialization of type T and ignores all its arguments


vector_width variable

template <typename T>
constexpr static size_t vector_width = (const_max(
    size_t(1),
    typeclass<T> == datatype::f
        ? platform<>::native_float_vector_size / sizeof(T)
        : platform<>::native_int_vector_size / sizeof(T)))

SIMD vector width for the given cpu instruction set


zeroize function

template <typename T1> void zeroize(T1 &value)

Fills a value with zeros


Auto-generated from sources, Revision 5191a48df06ea47104ca67db19fa82058d09c20a, https://github.com/kfrlib/kfr/blob/5191a48df06ea47104ca67db19fa82058d09c20a/include/kfr/