frc dest, src
| Name | Registers |
|---|---|
| dest | A temporary register |
| src | A temporary register, input register, or floating-point constant register. |
You cannot specify the same register for src and dest.
Finds the difference between src and the largest integer that is not greater than src, then stores the result in dest.
dest.x = src.x - floor ( src.x ) dest.y = src.y - floor ( src.y ) dest.z = src.z - floor ( src.z ) dest.w = src.w - floor ( src.w )
flr dest, src add dest, src, -dest
frc r0, v1
| 1 | 2 | 3 | 4 | 5 | 6 | ||
|---|---|---|---|---|---|---|---|
| flr | read | FLOOR | write | ||||
| add | STALL | read | ADD | post | write |
CONFIDENTIAL