Arithmetic Instructions

Arithmetic Instructions

Description

Arithmetic instructions run arithmetic computations. All these instructions operate on the values of the x, y, z, and w components of the src operand after swizzling.

List of Instructions

add Add Calculates the sum of (A + B).
dp3 Three-component dot product Calculates the dot product of three components.
dp4 Four-component dot product Calculates the dot product of four components.
dph Homogeneous dot product Calculates the sum of the dot product of three components plus the w component.
dst Distance vector Calculates the distance vector.
exp Exponential base 2 Calculates a power of two.
flr Floor Returns the largest integer under the specified value.
litp Light coefficients Runs partial lighting calculations.
log Logarithm base 2 Calculates a binary logarithm.
mad Multiply and add Multiplies and adds (A * B + C).
max Maximum Returns the larger of two values.
min Minimum Returns the smaller of two values.
mov Move Copies the content of a register.
mova Move to address register Copies the content of a register to an address register.
mul Multiply Multiplies (A * B).
nop No operation The nop (No OPeration) instruction.
rcp Reciprocal Calculates the inverse.
rsq Reciprocal square root Calculates the inverse square root.
sge Set on greater than or equal Returns 1 if the given value is greater than or equal to another value; otherwise, returns 0.
slt Set on less than Returns 1 if the given value is less than another value; otherwise, returns 0.

Revision History

2011/12/20
Initial version.

CONFIDENTIAL