ATLAS Offline Software
Loading...
Searching...
No Matches
FloatingPointHelpers::BitCastHelper Namespace Reference

Functions

template<class To, class From>
static constexpr To bitcast (const From &x)

Function Documentation

◆ bitcast()

template<class To, class From>
constexpr To FloatingPointHelpers::BitCastHelper::bitcast ( const From & x)
inlinestaticconstexpr

Definition at line 275 of file FPHelpers.h.

276 {
277 To ret = 0;
278 std::memcpy(&ret, &x, sizeof(To));
279 return ret;
280 }
#define x