Home
last modified time | relevance | path

Searched defs:FXBits (Results 1 – 1 of 1) sorted by relevance

/external/llvm-libc/src/__support/fixed_point/
Dfx_bits.h25 template <typename T> struct FXBits { struct
28 using StorageType = typename fx_rep::StorageType;
52 LIBC_INLINE constexpr FXBits() = default; argument
54 template <typename XType> LIBC_INLINE constexpr explicit FXBits(XType x) { in FXBits() argument
67 LIBC_INLINE constexpr StorageType get_fraction() { in get_fraction()
71 LIBC_INLINE constexpr StorageType get_integral() { in get_integral()
76 LIBC_INLINE constexpr bool get_sign() { in get_sign()
81 LIBC_INLINE constexpr int get_exponent() { return fx_rep::FRACTION_LEN; } in get_exponent()
83 LIBC_INLINE constexpr void set_fraction(StorageType fraction) { in set_fraction()
88 LIBC_INLINE constexpr void set_integral(StorageType integral) { in set_integral()
[all …]