Zserio C++ runtime library  1.1.0
Built for Zserio 2.15.0
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:193
uint32_t convertFloatToUInt32(float float32)
Definition: FloatUtil.cpp:177
float convertUInt32ToFloat(uint32_t float32Value)
Definition: FloatUtil.cpp:169
double convertUInt64ToDouble(uint64_t float64Value)
Definition: FloatUtil.cpp:185
uint16_t convertFloatToUInt16(float float32)
Definition: FloatUtil.cpp:83
float convertUInt16ToFloat(uint16_t float16Value)
Definition: FloatUtil.cpp:32