04.01.2015 Views

RealView Compilation Tools - ARM Information Center

RealView Compilation Tools - ARM Information Center

RealView Compilation Tools - ARM Information Center

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.

Using NEON Support<br />

E.2 Vector data types<br />

The following types are defined to represent vectors. NEON vector data types are<br />

named according to the following pattern:<br />

x_t<br />

For example, int16x4_t is a vector containing four lanes each containing a signed 16-bit<br />

integer. Table E-1 lists the vector data types.<br />

Table E-1 Vector data types<br />

int8x8_t<br />

int16x4_t<br />

int32x2_t<br />

int64x1_t<br />

uint8x8_t<br />

uint16x4_t<br />

uint32x2_t<br />

uint64x1_t<br />

float16x4_t<br />

float32x2_t<br />

poly8x8_t<br />

poly16x4_t<br />

int8x16_t<br />

int16x8_t<br />

int32x4_t<br />

int64x2_t<br />

uint8x16_t<br />

uint16x8_t<br />

uint32x4_t<br />

uint64x2_t<br />

float16x8_t<br />

float32x4_t<br />

poly8x16_t<br />

poly16x8_t<br />

Some intrinsics use an array of vector types of the form:<br />

xx_t<br />

These types are treated as ordinary C structures containing a single element named val.<br />

An example structure definition is:<br />

struct int16x4x2_t<br />

{<br />

int16x4_t val[2];<br />

};<br />

There are array types defined for array lengths between 2 and 4, with any of the vector<br />

types listed in Table E-1.<br />

<strong>ARM</strong> DUI 0348C Copyright © 2007-2010 <strong>ARM</strong>. All rights reserved. E-3<br />

ID101213<br />

Non-Confidential,

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

Saved successfully!

Ooh no, something went wrong!