Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

dmul (sm5 - asm)

Component-wise double-precision multiply.

dmul[_sat] dest[.mask], [-]src0[_abs][.swizzle], [-]src1[_abs][.swizzle]

 

ItemDescription

dest

[in] The address of the result of the operation.

dest = src0 * src1

src0

[in] The components to multiply with src1.

src1

[in] The components to multiply with src0.

 

Remarks

The valid swizzles for the source parameters are .xyzw, .xyxy, .zwxy, .zwzw. The valid dest masks are .xy, .zw, and .xyzw. The following src mappings are post-swizzle:

  • dest is a double vec2 across (x 32LSB, y 32MSB) and (z 32LSB, w 32MSB).
  • src0 is a double vec2 across (x 32LSB, y 32MSB) and (z 32LSB, w 32MSB).
  • src1 is a double vec2 across (x 32LSB, y 32MSB) and (z 32LSB, w 32MSB).

The following table shows the results obtained when executing the instruction with various classes of numbers, assuming that neither overflow or underflow occurs.

F means finite-real number.

src0 src1->-inf-F-1.0-0+0+1.0+F+infNaN
-inf+inf+inf+infNaNNaN-inf-inf-infNaN
-F+inf+F-src0+0-0src0-F-infNaN
-1.0F+inf-src1+1.0+0-0-1.0-src1-infNaN
-0NaN+0+0+0-0-0-0NaNNaN
+0NaN-0-0-0+0+0+0NaNNaN
+1.0-infsrc1-1.0-0+0+1src1+infNaN
+F-inf-F-src0-0+0src0+F+infNaN
+inf-inf-inf-infNaNNaN+inf+inf+infNaN
NaNNaNNaNNaNNaNNaNNaNNaNNaNNaN

 

This instruction applies to the following shader stages:

VertexHullDomainGeometryPixelCompute
XX XXXX

 

Minimum Shader Model

This instruction is supported in the following shader models:

Shader ModelSupported
Shader Model 5 yes
Shader Model 4.1 no
Shader Model 4 no
Shader Model 3 (DirectX HLSL) no
Shader Model 2 (DirectX HLSL) no
Shader Model 1 (DirectX HLSL) no

 

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.