You copied the Doc URL to your clipboard.

Software floating-point division-by-zero errors in C code

Floating-point division-by-zero errors in software can be trapped and identified using a combination of intrinsics and C library helper functions.

Specifically:

  • The __ieee_status intrinsic lets you trap floating-point division-by-zero errors.
  • Placing a breakpoint on _fp_trapveneer() lets you identify software floating-point division-by-zero errors.
  • Intercepting _fp_trapveneer() using the $Super$$ and $Sub$$ mechanism lets you save parameters for debugging.
Was this page helpful? Yes No