Gromacs  2024.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
gmx::test::anonymous_namespace{inmemoryserializer.cpp} Namespace Reference

Functions

constexpr int integerSizeDependentTestingValue ()
 Return the integer used for testing, depending on the size of int.
 
constexpr int integerSizeDependentTestingValueEndianessSwapped ()
 Return the endianess-swapped integer used for testing, depending on the size of int.
 

Variables

constexpr std::int16_t c_int16Value = static_cast<std::int16_t>(0x7A2B)
 Constants used for testing endian swap operations.
 
constexpr std::int16_t c_int16ValueSwapped = static_cast<std::int16_t>(0x2B7A)
 
constexpr std::int32_t c_int32Value = static_cast<std::int32_t>(0x78ABCDEF)
 
constexpr std::int32_t c_int32ValueSwapped = static_cast<std::int32_t>(0xEFCDAB78)
 
constexpr std::int64_t c_int64Value = static_cast<std::int64_t>(0x78ABCDEF12345678)
 
constexpr std::int64_t c_int64ValueSwapped = static_cast<std::int64_t>(0x78563412EFCDAB78)
 
constexpr const IntAndFloat32 c_intAndFloat32 { c_int32Value }
 
constexpr const IntAndFloat64 c_intAndFloat64 { c_int64Value }
 
constexpr const IntAndFloat32 c_intAndFloat32Swapped { c_int32ValueSwapped }
 
constexpr const IntAndFloat64 c_intAndFloat64Swapped { c_int64ValueSwapped }