Searched refs:FloatingPointType (Results 1 – 2 of 2) sorted by relevance
128 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() function150 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 …]
130 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() function146 FloatingPointType value_ = 0;