Zserio C++ runtime library  1.0.2
Built for Zserio 2.14.1
FloatUtil.h
Go to the documentation of this file.
1 #ifndef ZSERIO_FLOAT_UTIL_H_INC
2 #define ZSERIO_FLOAT_UTIL_H_INC
3 
4 #include "zserio/Types.h"
5 
16 namespace zserio
17 {
18 
26 float convertUInt16ToFloat(uint16_t float16Value);
27 
35 uint16_t convertFloatToUInt16(float float32);
36 
44 float convertUInt32ToFloat(uint32_t float32Value);
45 
53 uint32_t convertFloatToUInt32(float float32);
54 
62 double convertUInt64ToDouble(uint64_t float64Value);
63 
71 uint64_t convertDoubleToUInt64(double float64);
72 
73 } // namespace zserio
74 
75 #endif // ZSERIO_FLOAT_UTIL_H_INC
uint64_t convertDoubleToUInt64(double float64)
Definition: FloatUtil.cpp:188
uint32_t convertFloatToUInt32(float float32)
Definition: FloatUtil.cpp:174
float convertUInt32ToFloat(uint32_t float32Value)
Definition: FloatUtil.cpp:167
double convertUInt64ToDouble(uint64_t float64Value)
Definition: FloatUtil.cpp:181
uint16_t convertFloatToUInt16(float float32)
Definition: FloatUtil.cpp:81
float convertUInt16ToFloat(uint16_t float16Value)
Definition: FloatUtil.cpp:30