Skip to content

Function uibitcast

function uibitcast(const From &) simd

template <typename From, typename To = uitype<From>>
    requires(!is_compound_type<From>)
constexpr KFR_INTRINSIC To uibitcast(const From& value) noexcept { … }

Reinterpret the bits of a scalar value as its unsigned-or-signed counterpart type.

Returns
bitcast<uitype<From>>(value) .

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

Declared at simd/vec.hpp:1160

Function uibitcast

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

template <typename From, size_t N, typename To = uitype<From>,
          size_t Nout = size_of<From>() * N / size_of<To>()>
constexpr KFR_INTRINSIC vec<To, Nout> uibitcast(const vec<From, N>& value) noexcept { … }

Reinterpret the bits of a vector as a vector of its unsigned-or-signed counterpart type.

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

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

Declared at simd/vec.hpp:1204

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