4#ifndef TETL_CFLOAT_HALF_HPP
5#define TETL_CFLOAT_HALF_HPP
7#include <etl/_bit/bit_cast.hpp>
8#include <etl/_cstdint/uint_t.hpp>
17 using storage_type =
etl::uint16_t;
19 constexpr half() =
default;
23 storage_type _bits{0};
34inline constexpr etl::
half::storage_type exp_mask{0b0111'1100'0000'0000};
35inline constexpr etl::
half::storage_type man_mask{0b0000'0011'1111'1111};
36inline constexpr etl::
half::storage_type inf_mask{0b0111'1111'1111'1111};
37inline constexpr etl::
half::storage_type sign_mask{0b1000'0000'0000'0000};
51 using uint_t =
half::storage_type;
57 using uint_t =
half::storage_type;
63 using uint_t =
half::storage_type;
69 using uint_t =
half::storage_type;
70 auto const mask = detail::exp_mask;
72 return ((bits & mask) != 0) & ((bits & mask) != mask);
77 using uint_t =
half::storage_type;
constexpr auto bit_cast(From const &src) noexcept -> To
Obtain a value of type To by reinterpreting the object representation of from. Every bit in the value...
Definition bit_cast.hpp:39
Definition adjacent_find.hpp:9
constexpr auto isfinite(half arg) noexcept -> bool
Definition half.hpp:49
constexpr auto isinf(half arg) noexcept -> bool
Definition half.hpp:55
constexpr auto signbit(half arg) noexcept -> bool
Definition half.hpp:75
constexpr auto isnormal(half arg) noexcept -> bool
Definition half.hpp:67
constexpr auto isnan(half arg) noexcept -> bool
Definition half.hpp:61
constexpr auto binary
Definition half.hpp:14
constexpr half(binary_t, storage_type bits)
Definition half.hpp:40