Lines Matching refs:X
5 | input values X and Y. The entry point sREM computes the floating
6 | point (IEEE) REM of the input values X and Y.
11 | A0. Double-extended value X is located in -12(A0). The values
12 | of X and Y are both nonzero and finite; although either or both
18 | FREM(X,Y) or FMOD(X,Y), depending on entry point.
23 | Step 1. Save and strip signs of X and Y: signX := sign(X),
24 | signY := sign(Y), X := |X|, Y := |Y|,
28 | Step 2. Set L := expo(X)-expo(Y), k := 0, Q := 0.
30 | R := X, go to Step 4.
32 | R := 2^(-L)X, j := L.
35 | Step 3. Perform MOD(X,Y)
42 | Step 4. At this point, R = X - QY = MOD(X,Y). Set
46 | Step 5. R = MOD(X,Y), but REM(X,Y) is requested.
47 | 5.1 If R < Y/2, then R = MOD(X,Y) = REM(X,Y). Go to
60 | Step 9. At this point, R = 2^(-j)*X - Q Y = Y. Thus,
61 | X = 2^(j)*(Q+1)Y. set Q := 2^(j)*(Q+1),
109 |..Save sign of X and Y
164 movel -4(%a0),%d2 | ...(D0,D1,D2) is |X|
204 subl %d3,%d0 | ...L := expo(X)-expo(Y)
214 |..expo(X) < expo(Y). Thus X = mod(X,Y)
219 |..At this point R = 2^(-L)X; Q = 0; k = 0; and k+j = L
248 |..At this point, Carry=0, R < Y. R = 2^(k-L)X - QY; k+j = L; j >= 0.
258 |..At this point, R=(Carry,D1,D2) = 2^(k-L)X - QY, j+k=L, j >= 0, R < 2Y.
263 |..k = L, j = 0, Carry = 0, R = (D1,D2) = X - QY, R < Y.
356 |..Get sign of X
391 |..R = 2^(-j)X - Q Y = Y, thus R = 0 and quotient = 2^j (Q+1)