ARM Technical Support Knowledge Articles

FLOATFUZZY DIRECTIVE

Applies to: C251 C Compiler

Answer


Information in this article applies to:


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

Article last edited on: 2000-06-01 00:00:00

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential