25.02.2015 Views

AMD 64-Bit Technology - ECE User Home Pages

AMD 64-Bit Technology - ECE User Home Pages

AMD 64-Bit Technology - ECE User Home Pages

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>AMD</strong> <strong>64</strong>-<strong>Bit</strong> <strong>Technology</strong> 26568—Rev. 3.02—August 2002<br />

CVTTSD2SI<br />

Convert Scalar Double-Precision Floating-Point<br />

to Signed Doubleword of Quadword Integer,<br />

Truncated<br />

Converts a double-precision floating-point value in the low-order <strong>64</strong> bits of an XMM<br />

register or a <strong>64</strong>-bit memory location to a 32-bit or <strong>64</strong>-bit signed integer value and<br />

writes the converted value in a general-purpose register.<br />

Mnemonic Opcode Description<br />

CVTTSD2SI reg32, xmm/mem<strong>64</strong> F2 0F 2C /r Converts scalar double-precision floating-point value in an XMM<br />

register or <strong>64</strong>-bit memory location to a doubleword signed<br />

integer value in a general-purpose register. Inexact results are<br />

truncated.<br />

CVTTSD2SI reg<strong>64</strong>, xmm/mem<strong>64</strong> F2 0F 2C /r Converts scalar double-precision floating-point value in an XMM<br />

register or <strong>64</strong>-bit memory location to a quadword signed integer<br />

value in a general-purpose register. Inexact results are truncated.<br />

reg32<br />

xmm2/mem<strong>64</strong><br />

31 0 127 <strong>64</strong> 63 0<br />

convert<br />

reg<strong>64</strong><br />

xmm2/mem<strong>64</strong><br />

63 0 127 <strong>64</strong> 63 0<br />

convert<br />

with REX prefix<br />

cvttsd2si.eps<br />

If the result of the conversion is an inexact value, the value is truncated (rounded<br />

toward zero). If the floating-point value is a NaN, infinity, or if the result of the<br />

conversion is larger than the maximum signed doubleword (–2 31 to +2 31 – 1) or<br />

quadword value (–2 63 to +2 63 – 1), the instruction returns the indefinite integer value<br />

96 CVTTSD2SI

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

Saved successfully!

Ooh no, something went wrong!