FSINC#

Format: FSINC dest, destPred, source.

Phase0: FSINC W0, P0, S0.

Phase1: -

Phase2: -

Description: Trigonometric ‘(sine x) / x’, one source.

Used for calculating sin(x).

W0 = sinc(S0)

P = perform final multiply

  1. Behaviour is not defined for input outside of [-1,1] range

  2. sinc(Any NaN) = +NaN

  3. Any input with an exponent < (103) produces pi/2

Example:

void main()
{
    fragColor = sin(a);
}
2    : fsinc r0, p0, i0