#include <bf16.hpp>
Definition at line 19 of file bf16.hpp.
◆ underlying_type
◆ bf16() [1/5]
|
constexprdefaultnoexcept[[always_inline]][[artificial]] |
◆ bf16() [2/5]
ein::bf16::bf16 |
( |
float | f | ) |
|
|
inlineconstexprnoexcept[[always_inline]][[artificial]] |
◆ bf16() [3/5]
ein::bf16::bf16 |
( |
__bf16 | f | ) |
|
|
inlineconstexprnoexcept[[always_inline]][[artificial]] |
◆ bf16() [4/5]
ein::bf16::bf16 |
( |
bf16 const & | | ) |
|
|
constexprdefaultnoexcept[[always_inline]][[artificial]][[noescape]] |
◆ bf16() [5/5]
ein::bf16::bf16 |
( |
bf16 && | | ) |
|
|
constexprdefaultnoexcept[[always_inline]][[artificial]][[noescape]] |
◆ from_bits()
static constexpr bf16 ein::bf16::from_bits |
( |
uint16_t | data | ) |
|
|
inlinestaticconstexprnoexcept[[nodiscard]][[always_inline]][[artificial]][[const]] |
◆ operator __bf16()
ein::bf16::operator __bf16 |
( |
this bf16 | self | ) |
|
|
inlineconstexprnoexcept[[nodiscard]][[always_inline]][[artificial]][[const]] |
Definition at line 40 of file bf16.hpp.
40{ return self.content; }
◆ operator float()
ein::bf16::operator float |
( |
this bf16 | self | ) |
|
|
inlineconstexprnoexcept[[nodiscard]][[always_inline]][[artificial]][[const]] |
Definition at line 43 of file bf16.hpp.
43{ return self.content; }
◆ operator=() [1/2]
|
constexprdefaultnoexcept[[always_inline]][[artificial]][[noescape]][[lifetimebound]] |
◆ operator=() [2/2]
|
constexprdefaultnoexcept[[always_inline]][[artificial]][[noescape]][[lifetimebound]] |
◆ to_bits()
uint16_t ein::bf16::to_bits |
( |
this bf16 | self | ) |
|
|
inlineconstexprnoexcept[[nodiscard]][[always_inline]][[const]] |
Definition at line 103 of file bf16.hpp.
103 {
104 return std::bit_cast<uint16_t>(self.content);
105 }
◆ operator!=
|
friend[[nodiscard]][[always_inline]][[artificial]][[const]] |
Definition at line 64 of file bf16.hpp.
64 {
65 return x.content != y.content;
66 }
◆ operator<
|
friend[[nodiscard]][[always_inline]][[artificial]][[const]] |
Definition at line 69 of file bf16.hpp.
69 {
70 return x.content < y.content;
71 }
◆ operator<=
|
friend[[nodiscard]][[always_inline]][[artificial]][[const]] |
Definition at line 79 of file bf16.hpp.
79 {
80 return x.content <= y.content;
81 }
◆ operator<=>
std::partial_ordering operator<=> |
( |
bf16 | x, |
|
|
bf16 | y ) |
|
friend[[nodiscard]][[always_inline]][[artificial]][[const]] |
Definition at line 59 of file bf16.hpp.
59 {
60 return x.content <=> y.content;
61 }
◆ operator==
|
friend[[nodiscard]][[always_inline]][[artificial]][[const]] |
Definition at line 54 of file bf16.hpp.
54 {
55 return x.content == y.content;
56 }
◆ operator>
|
friend[[nodiscard]][[always_inline]][[artificial]][[const]] |
Definition at line 74 of file bf16.hpp.
74 {
75 return x.content > y.content;
76 }
◆ operator>=
|
friend[[nodiscard]][[always_inline]][[artificial]][[const]] |
Definition at line 84 of file bf16.hpp.
84 {
85 return x.content >= y.content;
86 }
◆ swap
|
friend[[always_inline]][[artificial]][[noescape]] |
Definition at line 89 of file bf16.hpp.
92 {
93 using std::swap;
94 swap(x.content,y.content);
95 }
friend constexpr void swap(bf16 &x, bf16 &y) noexcept
◆ content
__bf16 ein::bf16::content |
The documentation for this struct was generated from the following file: