S2OPC OPCUA Toolkit
Functions
sopc_ieee_check.h File Reference

Include this file and call SOPC_IEEE_Check to assert IEEE-754 compliance. More...

#include <float.h>
#include <stdbool.h>

Go to the source code of this file.

Functions

bool SOPC_IEEE_Check (void)
 Checks the floating-point compliance to IEEE-754 standard. More...
 

Detailed Description

Include this file and call SOPC_IEEE_Check to assert IEEE-754 compliance.

Function Documentation

◆ SOPC_IEEE_Check()

bool SOPC_IEEE_Check ( void  )

Checks the floating-point compliance to IEEE-754 standard.

Most of the verifications are done at compile time with #if statements, but some of them must be done at execution time.

Returns
true if floating-point arithmetics are compliant to IEEE-754.