| |||
| Home > Coding Practices > Trapping and identifying division-by-zero errors | |||
It is important to eliminate any division-by-zero errors in code, particularly for embedded systems, which might not be able to recover easily. For ARM processor cores, division-by-zero errors fall into two categories:
integer division-by-zero errors
(software) floating point division-by-zero errors.
Different techniques are required in both cases for trapping and identifying these errors.