29.10.2014 Views

ARM Compiler toolchain v4.1 for µVision Using the Compiler

ARM Compiler toolchain v4.1 for µVision Using the Compiler

ARM Compiler toolchain v4.1 for µVision Using the Compiler

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.

<strong>Compiler</strong> Coding Practices<br />

5.46 <strong>Compiler</strong> and library support <strong>for</strong> half-precision floating-point numbers<br />

Half-precision floating-point numbers are provided as an optional extension to <strong>the</strong> Vector<br />

Floating-Point (VFP)v3 architecture. If <strong>the</strong> VFPv3 coprocessor is not available, or if a VFPv3<br />

coprocessor is used that does not have this extension, <strong>the</strong>y are supported through <strong>the</strong><br />

floating-point library fplib.<br />

Half-precision floating-point numbers can only be used when selected with <strong>the</strong><br />

--fp16_<strong>for</strong>mat=<strong>for</strong>mat compiler command-line option.<br />

The C++ name mangling <strong>for</strong> <strong>the</strong> half-precision data type is specified in <strong>the</strong> C++ generic<br />

Application Binary Interface (ABI).<br />

5.46.1 See also<br />

Concepts<br />

• Half-precision floating-point number <strong>for</strong>mat on page 5-62<br />

• Vector Floating-Point (VFP) architectures on page 5-58.<br />

<strong>Using</strong> <strong>ARM</strong> ® C and C++ Libraries and Floating-Point Support:<br />

• Chapter 4 Floating-point support.<br />

Reference<br />

<strong>Compiler</strong> Reference:<br />

• --fp16_<strong>for</strong>mat=<strong>for</strong>mat on page 3-41.<br />

O<strong>the</strong>r in<strong>for</strong>mation<br />

• C++ ABI <strong>for</strong> <strong>the</strong> <strong>ARM</strong> Architecture,<br />

http://infocenter.arm.com/help/topic/com.arm.doc.ihi0041-/index.html<br />

<strong>ARM</strong> DUI 0375C Copyright © 2007-2008, 2011 <strong>ARM</strong>. All rights reserved. 5-61<br />

ID061811<br />

Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!