frc - Fraction

frc - Fraction

Calling Format

frc     dest, src

Operands

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.

Overview

Finds the difference between src and the largest integer that is not greater than src, then stores the result in dest.

Operation

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 )

Macro Expansion

flr     dest, src
add     dest, src, -dest

Code Example

frc     r0, v1

Timetable

123456
flr read FLOOR write
add STALL read ADD post write

Revision History

2011/12/20
Initial version.

CONFIDENTIAL