Lines Matching defs:CY
154 #define __add_carry_out(S, CY, X, Y) \
158 CY = (S<X1) ? 1 : 0; \
160 #define __add_carry_in_out(S, CY, X, Y, CI) \
165 CY = ((S<X1) || (X1<CI)) ? 1 : 0; \
167 #define __sub_borrow_out(S, CY, X, Y) \
171 CY = (S>X1) ? 1 : 0; \
173 #define __sub_borrow_in_out(S, CY, X, Y, CI) \
178 CY = ((S>X1) || (X1>X0)) ? 1 : 0; \
213 #define __mul_64x64_to_64(P64, CX, CY) (P64) = (CX) * (CY)
217 #define __imul_64x64_to_128(P, CX, CY) \
220 __mul_64x64_to_128(P, CX, CY); \
223 SY = ((SINT64)(CY))>>63; \
224 SX &= CY; SY &= CX; \
250 #define __mul_64x64_to_128(P, CX, CY) \
255 CYH = (CY) >> 32; \
256 CYL = (UINT32)(CY); \
270 // This macro is used for CX < 2^61, CY < 2^61
272 #define __mul_64x64_to_128_fast(P, CX, CY) \
277 CYH = (CY) >> 32; \
278 CYL = (UINT32)(CY); \
307 // This implementation is used for CX < 2^61, CY < 2^61
309 #define __mul_64x64_to_64_high_fast(P, CX, CY) \
314 CYH = (CY) >> 32; \
315 CYL = (UINT32)(CY); \
327 #define __mul_64x64_to_128_full(P, CX, CY) \
332 CYH = (CY) >> 32; \
333 CYL = (UINT32)(CY); \
491 UINT64 CY; \
496 __add_carry_out((P).w[1],CY,P1.w[0],P0.w[1]); \
497 __add_carry_in_out((P).w[2],CY,P1.w[1],P0.w[2],CY); \
498 __add_carry_in_out((P).w[3],CY,P1.w[2],P0.w[3],CY); \
499 (P).w[4] = P1.w[3] + CY; \
500 __add_carry_out((P).w[2],CY,P2.w[0],(P).w[2]); \
501 __add_carry_in_out((P).w[3],CY,P2.w[1],(P).w[3],CY); \
502 __add_carry_in_out((P).w[4],CY,P2.w[2],(P).w[4],CY); \
503 (P).w[5] = P2.w[3] + CY; \
555 UINT64 CY; \
561 __add_carry_out((P).w[1],CY,P1.w[0],P0.w[1]); \
562 __add_carry_in_out((P).w[2],CY,P1.w[1],P0.w[2],CY); \
563 __add_carry_in_out((P).w[3],CY,P1.w[2],P0.w[3],CY); \
564 __add_carry_in_out((P).w[4],CY,P1.w[3],P0.w[4],CY); \
565 (P).w[5] = P1.w[4] + CY; \
566 __add_carry_out((P).w[2],CY,P2.w[0],(P).w[2]); \
567 __add_carry_in_out((P).w[3],CY,P2.w[1],(P).w[3],CY); \
568 __add_carry_in_out((P).w[4],CY,P2.w[2],(P).w[4],CY); \
569 __add_carry_in_out((P).w[5],CY,P2.w[3],(P).w[5],CY); \
570 (P).w[6] = P2.w[4] + CY; \
571 __add_carry_out((P).w[3],CY,P3.w[0],(P).w[3]); \
572 __add_carry_in_out((P).w[4],CY,P3.w[1],(P).w[4],CY); \
573 __add_carry_in_out((P).w[5],CY,P3.w[2],(P).w[5],CY); \
574 __add_carry_in_out((P).w[6],CY,P3.w[3],(P).w[6],CY); \
575 (P).w[7] = P3.w[4] + CY; \
580 UINT64 CY; \
585 __add_carry_out((P).w[1],CY,P1.w[0],P0.w[1]); \
586 __add_carry_in_out((P).w[2],CY,P1.w[1],P0.w[2],CY); \
587 __add_carry_in_out((P).w[3],CY,P1.w[2],P0.w[3],CY); \
588 __add_carry_in_out((P).w[4],CY,P1.w[3],P0.w[4],CY); \
589 (P).w[5] = P1.w[4] + CY; \
590 __add_carry_out((P).w[2],CY,P2.w[0],(P).w[2]); \
591 __add_carry_in_out((P).w[3],CY,P2.w[1],(P).w[3],CY); \
592 __add_carry_in_out((P).w[4],CY,P2.w[2],(P).w[4],CY); \
593 __add_carry_in_out((P).w[5],CY,P2.w[3],(P).w[5],CY); \
594 (P).w[6] = P2.w[4] + CY; \
599 UINT64 CY; \
604 __add_carry_out((P0).w[0],CY,P1.w[0],P2.w[0]); \
605 __add_carry_in_out((P0).w[1],CY,P1.w[1],P2.w[1],CY); \
606 __add_carry_in_out((P0).w[2],CY,P1.w[2],P2.w[2],CY); \
607 __add_carry_in_out((P0).w[3],CY,P1.w[3],P2.w[3],CY); \
608 __add_carry_in_out((P0).w[4],CY,P1.w[4],P2.w[4],CY); \
609 P3.w[1] += CY; \
610 __add_carry_out((P).w[4],CY,(P).w[4],P0.w[0]); \
611 __add_carry_in_out((P).w[5],CY,(P).w[5],P0.w[1],CY); \
612 __add_carry_in_out((P).w[6],CY,(P).w[6],P0.w[2],CY); \
613 __add_carry_in_out((P).w[7],CY,(P).w[7],P0.w[3],CY); \
614 __add_carry_in_out((P).w[8],CY,P3.w[0],P0.w[4],CY); \
615 (P).w[9] = P3.w[1] + CY; \
620 UINT64 CY; \
625 __add_carry_out((P0).w[0],CY,P1.w[0],P2.w[0]); \
626 __add_carry_in_out((P0).w[1],CY,P1.w[1],P2.w[1],CY); \
627 __add_carry_in_out((P0).w[2],CY,P1.w[2],P2.w[2],CY); \
628 __add_carry_in_out((P0).w[3],CY,P1.w[3],P2.w[3],CY); \
629 __add_carry_in_out((P0).w[4],CY,P1.w[4],P2.w[4],CY); \
630 __add_carry_in_out((P0).w[5],CY,P1.w[5],P2.w[5],CY); \
631 P3.w[1] += CY; \
632 __add_carry_out((P).w[5],CY,(P).w[5],P0.w[0]); \
633 __add_carry_in_out((P).w[6],CY,(P).w[6],P0.w[1],CY); \
634 __add_carry_in_out((P).w[7],CY,(P).w[7],P0.w[2],CY); \
635 __add_carry_in_out((P).w[8],CY,(P).w[8],P0.w[3],CY); \
636 __add_carry_in_out((P).w[9],CY,(P).w[9],P0.w[4],CY); \
637 __add_carry_in_out((P).w[10],CY,P3.w[0],P0.w[5],CY); \
638 (P).w[11] = P3.w[1] + CY; \
832 UINT64 QH, r, mask, C64, remainder_h, CY, carry;
934 __add_carry_out (Stemp.w[0], CY, Q_low.w[0],
937 reciprocals10_128[extra_digits].w[1], CY);
1179 UINT64 C64, remainder_h, QH, carry, CY;
1278 __add_carry_out (Stemp.w[0], CY, Q_low.w[0],
1281 reciprocals10_128[extra_digits].w[1], CY);
1306 UINT64 r, mask, C64, remainder_h, QH, carry, CY;
1404 __add_carry_out (Stemp.w[0], CY, Q_low.w[0],
1407 reciprocals10_128[extra_digits].w[1], CY);
1484 UINT64 carry, CY;
1591 __add_carry_out (Stemp.w[0], CY, Ql.w[0],
1594 reciprocals10_128[ed2].w[1], CY);
1627 UINT64 carry, CY;
1725 __add_carry_out (Stemp.w[0], CY, Ql.w[0],
1728 reciprocals10_128[ed2].w[1], CY);