first cut

This commit is contained in:
Jeff Hill
2000-08-25 01:35:49 +00:00
parent e33dab4299
commit 95dadce66f

View File

@@ -0,0 +1,22 @@
#ifndef osiWireFormat
#define osiWireFormat
#include "epicsTypes.h"
inline void osiConvertToWireFormat ( const epicsFloat32 &value, unsigned char *pWire )
{
cvt$convert_float ( &value, CVT$K_VAX_F , pWire, CVT$K_IEEE_S, CVT$M_BIG_ENDIAN );
}
inline void osiConvertToWireFormat ( const epicsFloat64 &value, unsigned char *pWire )
{
# if defined ( __G_FLOAT ) && ( __G_FLOAT == 1 )
cvt$convert_float ( &value, CVT$K_VAX_G , pWire, CVT$K_IEEE_T, CVT$M_BIG_ENDIAN );
# else
cvt$convert_float ( &value, CVT$K_VAX_D , pWire, CVT$K_IEEE_T, CVT$M_BIG_ENDIAN );
# endif
}
#endif // osiWireFormat