Skip to content

Function fbitcast

function fbitcast(const From &) simd

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

Reinterpret the bits of a scalar value as its floating-point counterpart type.

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

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

Declared at simd/vec.hpp:1149

Function fbitcast

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

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

Reinterpret the bits of a vector as a vector of its floating-point counterpart type.

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

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

Declared at simd/vec.hpp:1193

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