Home
last modified time | relevance | path

Searched refs:FloatingPointType (Results 1 – 2 of 2) sorted by relevance

/frameworks/libs/binary_translation/guest_abi/riscv64/include/berberis/guest_abi/
Dguest_abi_arch.h128 template <typename FloatingPointType>
130 GuestArgument<FloatingPointType,
132 std::enable_if_t<std::is_floating_point_v<FloatingPointType>>> {
134 using Type = FloatingPointType;
135 GuestArgument(const FloatingPointType& value) : value_(Box(value)) {} in GuestArgument()
136 GuestArgument(FloatingPointType&& value) : value_(Box(value)) {} in GuestArgument()
143 operator FloatingPointType() const { return Unbox(value_); } in FloatingPointType() function
150 static constexpr uint64_t Box(FloatingPointType value) { in Box()
151 if constexpr (sizeof(FloatingPointType) == sizeof(uint64_t)) { in Box()
153 } else if constexpr (sizeof(FloatingPointType) == sizeof(uint32_t)) { in Box()
[all …]
/frameworks/libs/binary_translation/guest_abi/include/berberis/guest_abi/
Dguest_type.h130 template <typename FloatingPointType>
131 class alignas(sizeof(FloatingPointType))
132 GuestType<FloatingPointType, std::enable_if_t<std::is_floating_point_v<FloatingPointType>>> {
134 using Type = FloatingPointType;
135 constexpr GuestType(const FloatingPointType& value) : value_(value) {} in GuestType()
136 constexpr GuestType(FloatingPointType&& value) : value_(value) {} in GuestType()
143 constexpr operator FloatingPointType() const { return value_; } in FloatingPointType() function
146 FloatingPointType value_ = 0;