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.3.31<br />

Vector reinterpret cast operations<br />

In some situations, you might want to treat a vector as having a different type, without<br />

changing its value. A set of intrinsics is provided to perform this type of conversion.<br />

Syntax<br />

vreinterpret{q}_dsttype_srctype<br />

Where:<br />

q<br />

dsttype<br />

srctype<br />

Specifies that the conversion operates on 128-bit vectors. If it is not<br />

present, the conversion operates on 64-bit vectors.<br />

Represents the type to convert to.<br />

Represents the type being converted.<br />

Example<br />

The following intrinsic reinterprets a vector of four signed 16-bit integers as a vector of<br />

four unsigned integers:<br />

uint16x4_t vreinterpret_u16_s16(int16x4_t a);<br />

The following intrinsic reinterprets a vector of four 32-bit floating point values integers<br />

as a vector of four signed integers.<br />

int8x16_t vreinterpretq_s8_f32(float32x4_t a);<br />

These conversions do not change the bit pattern represented by the vector.<br />

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

ID101213<br />

Non-Confidential,

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

Saved successfully!

Ooh no, something went wrong!