29.12.2014 Views

RealView Compilation Tools Compiler Reference Guide - ARM ...

RealView Compilation Tools Compiler Reference Guide - ARM ...

RealView Compilation Tools Compiler Reference Guide - ARM ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

C and C++ <strong>Compiler</strong> Implementation Limits<br />

Table D-4 describes other characteristics of floating-point numbers. These constants are<br />

also defined in the float.h include file.<br />

Table D-4 Other floating-point characteristics<br />

Constant Meaning Value<br />

FLT_RADIX Base (radix) of the <strong>ARM</strong> floating-point number representation 2<br />

FLT_ROUNDS Rounding mode for floating-point numbers (nearest) 1<br />

FLT_DIG Decimal digits of precision for float 6<br />

DBL_DIG Decimal digits of precision for double 15<br />

LDBL_DIG Decimal digits of precision for long double 15<br />

FLT_MANT_DIG Binary digits of precision for type float 24<br />

DBL_MANT_DIG Binary digits of precision for type double 53<br />

LDBL_MANT_DIG Binary digits of precision for type long double 53<br />

FLT_EPSILON Smallest positive value of x that 1.0 + x != 1.0 for type float 1.19209290e–7F<br />

DBL_EPSILON Smallest positive value of x that 1.0 + x != 1.0 for type double 2.2204460492503131e–16<br />

LDBL_EPSILON<br />

Smallest positive value of x that 1.0 + x != 1.0 for type long<br />

double<br />

2.2204460492503131e–16L<br />

Note<br />

• When a floating-point number is converted to a shorter floating-point number, it<br />

is rounded to the nearest representable number.<br />

• Floating-point arithmetic conforms to IEEE 754.<br />

D-6 Copyright © 2007, 2010 <strong>ARM</strong> Limited. All rights reserved. <strong>ARM</strong> DUI 0348A<br />

Non-Confidential

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!