Keil™, An ARM® Company

Technical Support

C251: FLOATFUZZY DIRECTIVE


Information in this article applies to:

  • C251 Version 2.14

QUESTION

What does the FLOATFUZZY directive do?

ANSWER

FLOATFUZZY lets you specify the number of bits that are rounded before floating-point comparisons.

On the command line, FLOATFUZZY is used as follows:

c251 myfile.c floatfuzzy(5)

or

c251 myfile.c ff(5)

You may also use FLOATFUZZY within a #pragma multiple times in your source file. For example:

#pragma ff(5)
void function1 (void)
{
.
.
.
}

#pragma ff(3)
void function2 (void)
{
.
.
.
}

The number of bits specified may be a number from 0 to 7. The default is 3 which means that the three least significant bits of a floating-point value are rounded before the comparison is made.

MORE INFORMATION

  • Refer to page 36 in the C251 User's Guide 09.97.

Last Reviewed: Thursday, June 01, 2000


Did this article provide the answer you needed?
 
Yes
No
Not Sure