My question revolves around using floating point exceptions in C.
Are there some examples that may show me how trap an FP exception?
Also, I would like to be able to detect if a floating point
variable is a NaN (Not a Number) or a properly formatted variable.
We will be using data copied in from an FPGA via the HPI (Host-Post Interface). This data may
not be formatted in the correct FP format. I need assistance to determine
if the value can be accessed as a FP variable or if I need to initialize
the value to a default value.
Thanks for any assistance you can offer.