dst - Distance vector

dst - Distance vector

Calling Format

dst     dest, src0, src1

Operands

Name Registers
dest An output register or temporary register.
src0 A temporary register, input register, or floating-point constant register.
src1 A temporary register, input register, or floating-point constant register.

You cannot specify a floating-point constant register for both src0 and src1.
You cannot specify input registers using different indices for src0 and src1 at the same time.

Overview

Calculates the vector distance.

Set the squared distance in the y and z components of src0 and the inverse distance in the y and w components of src1.
The following values are stored in dest: 1, the distance, the squared distance, and the inverse distance.

Operation

dest.x = 1
dest.y = src0.y * src1.y
dest.z = src0.z
dest.w = src1.w

Code Example

dst     r0, c1, v2

Timetable

1234
dst read MUL post write

Revision History

2011/12/20
Initial version.

CONFIDENTIAL