Class special_scalar_constants¶
class special_scalar_constants<T> simd¶
template <typename T>
struct special_scalar_constants { … } Provides special bit-pattern constants for a scalar type.
The default implementation is intended for integer types. Floating-point types use specializations that provide their corresponding IEEE 754 masks.
| T | Scalar type for which the constants are provided. |
function highbitmask() ¶
constexpr static T highbitmask() { … } Returns a value with only the most significant bit set.
Fully qualified name: kfr::special_scalar_constants<T>::highbitmask()
Declared at simd/types.hpp:61
function allones() ¶
constexpr static T allones() { … } Returns a value with all bits set.
Fully qualified name: kfr::special_scalar_constants<T>::allones()
Declared at simd/types.hpp:63
function allzeros() ¶
constexpr static T allzeros() { … } Returns a value with all bits cleared.
Fully qualified name: kfr::special_scalar_constants<T>::allzeros()
Declared at simd/types.hpp:65
function invhighbitmask() ¶
constexpr static T invhighbitmask() { … } Returns a value with every bit except the most significant bit set.
Fully qualified name: kfr::special_scalar_constants<T>::invhighbitmask()
Declared at simd/types.hpp:67
Fully qualified name: kfr::special_scalar_constants<T>
Declared at simd/types.hpp:58
Class special_scalar_constants¶
struct special_scalar_constants<float> simd¶
template <>
struct special_scalar_constants<float> { … } Provides special bit-pattern constants for float .
The masks are represented as floating-point values with the corresponding IEEE 754 bit patterns.
function highbitmask() ¶
constexpr static float highbitmask() { … } Returns negative zero, whose sign bit is set.
Fully qualified name: kfr::special_scalar_constants<float>::highbitmask()
Declared at simd/types.hpp:80
function allones() ¶
constexpr static float allones() noexcept { … } Returns a floating-point value with all bits set.
Fully qualified name: kfr::special_scalar_constants<float>::allones()
Declared at simd/types.hpp:82
function allzeros() ¶
constexpr static float allzeros() { … } Returns positive zero, whose bits are all cleared.
Fully qualified name: kfr::special_scalar_constants<float>::allzeros()
Declared at simd/types.hpp:84
function invhighbitmask() ¶
constexpr static float invhighbitmask() { … } Returns a floating-point value with every bit except the sign bit set.
Fully qualified name: kfr::special_scalar_constants<float>::invhighbitmask()
Declared at simd/types.hpp:86
Fully qualified name: kfr::special_scalar_constants<float>
Declared at simd/types.hpp:77
Class special_scalar_constants¶
struct special_scalar_constants<double> simd¶
template <>
struct special_scalar_constants<double> { … } Provides special bit-pattern constants for double .
The masks are represented as floating-point values with the corresponding IEEE 754 bit patterns.
function highbitmask() ¶
constexpr static double highbitmask() { … } Returns negative zero, whose sign bit is set.
Fully qualified name: kfr::special_scalar_constants<double>::highbitmask()
Declared at simd/types.hpp:99
function allones() ¶
constexpr static double allones() noexcept { … } Returns a floating-point value with all bits set.
Fully qualified name: kfr::special_scalar_constants<double>::allones()
Declared at simd/types.hpp:101
function allzeros() ¶
constexpr static double allzeros() { … } Returns positive zero, whose bits are all cleared.
Fully qualified name: kfr::special_scalar_constants<double>::allzeros()
Declared at simd/types.hpp:103
function invhighbitmask() ¶
constexpr static double invhighbitmask() { … } Returns a floating-point value with every bit except the sign bit set.
Fully qualified name: kfr::special_scalar_constants<double>::invhighbitmask()
Declared at simd/types.hpp:105
Fully qualified name: kfr::special_scalar_constants<double>
Declared at simd/types.hpp:96
Class special_scalar_constants¶
class special_scalar_constants<bit<T>> simd¶
template <typename T>
struct special_scalar_constants<bit<T>> { … } Special scalar constants for bit<T> .
function highbitmask() ¶
constexpr static bit<T> highbitmask() { … } Mask with only the most significant bit set, expressed as a bit.
Fully qualified name: kfr::special_scalar_constants<bit<T>>::highbitmask()
Declared at simd/types.hpp:530
function allones() ¶
constexpr static bit<T> allones() noexcept { … } All bits set (true).
Fully qualified name: kfr::special_scalar_constants<bit<T>>::allones()
Declared at simd/types.hpp:532
function allzeros() ¶
constexpr static bit<T> allzeros() { … } All bits cleared (false).
Fully qualified name: kfr::special_scalar_constants<bit<T>>::allzeros()
Declared at simd/types.hpp:534
function invhighbitmask() ¶
constexpr static bit<T> invhighbitmask() { … } Inverse of highbitmask, i.e. all bits except the high bit set.
Fully qualified name: kfr::special_scalar_constants<bit<T>>::invhighbitmask()
Declared at simd/types.hpp:536
Fully qualified name: kfr::special_scalar_constants<bit<T>>
Declared at simd/types.hpp:527