Skip to main content

IAR Embedded Workbench for RH850 3.20.x

CERT-FLP32-C_a

In this section:
Synopsis

Prevent or detect domain and range errors in math functions.

Enabled by default

Yes

Severity/Certainty

Medium/Medium

mediummedium.png
Full description

Programmers can prevent domain and pole errors by carefully bounds-checking the arguments before calling mathematical functions and taking alternative action if the bounds are violated.

Coding standards
CERT FLP32-C

Prevent or detect domain and range errors in math functions

Code examples

The following code example fails the check and will give a warning:

void example(void) {}

The following code example passes the check and will not give a warning about this issue:

void example(void) {}