09.01.2013 Views

AMD x86-64 Architecture Programmer's Manual, Volume 4, 128-Bit ...

AMD x86-64 Architecture Programmer's Manual, Volume 4, 128-Bit ...

AMD x86-64 Architecture Programmer's Manual, Volume 4, 128-Bit ...

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.

26568—Rev. 3.05—September 2003 <strong>AMD</strong><strong>64</strong> Technology<br />

RSQRTPS Reciprocal Square Root Packed Single-Precision<br />

Floating-Point<br />

Computes the approximate reciprocal of the square root of each of the four packed<br />

single-precision floating-point values in an XMM register or <strong>128</strong>-bit memory location<br />

and writes the result in the corresponding doubleword of another XMM register. The<br />

rounding control bits (RC) in the MXCSR register have no effect on the result.<br />

The maximum error is less than or equal to 1.5 * 2 –12 times the true reciprocal square<br />

root. A source value that is ±zero or denormal returns an infinity of the source value’s<br />

sign. Negative source values other than –zero and –denormal return a QNaN floatingpoint<br />

indefinite value (“Indefinite Values” in <strong>Volume</strong> 1). For both SNaN and QNaN<br />

source operands, a QNaN is returned.<br />

Mnemonic Opcode Description<br />

RSQRTPS xmm1, xmm2/mem<strong>128</strong> 0F 52 /r Computes reciprocals of square roots of packed single-precision<br />

floating-point values in an XMM register or <strong>128</strong>-bit memory<br />

location and writes the result in the destination XMM register.<br />

Related Instructions<br />

xmm1 xmm2/mem<strong>128</strong><br />

127 96 95 <strong>64</strong> 63 32<br />

31<br />

0<br />

RSQRTSS, SQRTPD, SQRTPS, SQRTSD, SQRTSS<br />

127 96 95 <strong>64</strong> 63 32 31<br />

0<br />

reciprocal<br />

square root<br />

reciprocal<br />

square root<br />

reciprocal<br />

square root<br />

reciprocal<br />

square root<br />

rsqrtps.eps<br />

RSQRTPS 347

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

Saved successfully!

Ooh no, something went wrong!