Skip to content

Function bitcast

function bitcast(const From &) simd

template <typename To, typename From>
KFR_INTRINSIC To bitcast(const From& value) noexcept

Reinterpret the bits of value as type To .

Preconditions
sizeof(From) == sizeof(To) .

Fully qualified name: kfr::bitcast(const From &)

Declared at simd/vec.hpp:1100

Function bitcast

function bitcast(const vec<From, N> &) simd

template <typename To, typename From, size_t N, size_t Nout = (N * size_of<From>() / size_of<To>())>
KFR_INTRINSIC vec<To, Nout> bitcast(const vec<From, N>& value) noexcept

Reinterpret the bits of a vector as a vector of a different element type.

Returns
vec<To, Nout> where Nout = N * size_of<From>() / size_of<To>() .

Fully qualified name: kfr::bitcast(const vec<From, N> &)

Declared at simd/vec.hpp:1116

This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.