Lines Matching refs:cnt
6479 unsigned int res, cnt, mask, cf;
6495 * The low part is then shifted up cnt bits, and the high part is or'd
6502 if ((cnt = s % 9) != 0) {
6505 cf = (d >> (8 - cnt)) & 0x1;
6510 res = (d << cnt) & 0xff;
6517 mask = (1 << (cnt - 1)) - 1;
6518 res |= (d >> (9 - cnt)) & mask;
6523 res |= 1 << (cnt - 1);
6527 /* OVERFLOW is set *IFF* cnt==1, then it is the xor of CF and
6531 CONDITIONAL_SET_FLAG(cnt == 1 && XOR2(cf + ((res >> 6) & 0x2)),
6544 unsigned int res, cnt, mask, cf;
6547 if ((cnt = s % 17) != 0) {
6548 cf = (d >> (16 - cnt)) & 0x1;
6549 res = (d << cnt) & 0xffff;
6550 mask = (1 << (cnt - 1)) - 1;
6551 res |= (d >> (17 - cnt)) & mask;
6553 res |= 1 << (cnt - 1);
6556 CONDITIONAL_SET_FLAG(cnt == 1 && XOR2(cf + ((res >> 14) & 0x2)),
6568 uint32_t res, cnt, mask, cf;
6571 if ((cnt = s % 33) != 0) {
6572 cf = (d >> (32 - cnt)) & 0x1;
6573 res = (d << cnt) & 0xffffffff;
6574 mask = (1 << (cnt - 1)) - 1;
6575 res |= (d >> (33 - cnt)) & mask;
6577 res |= 1 << (cnt - 1);
6580 CONDITIONAL_SET_FLAG(cnt == 1 && XOR2(cf + ((res >> 30) & 0x2)),
6592 uint32_t res, cnt;
6605 * The low part is then shifted up cnt bits, and the high part is or'd
6612 if ((cnt = s % 9) != 0) {
6615 if (cnt == 1) {
6624 cf = (d >> (cnt - 1)) & 0x1;
6632 mask = (1 << (8 - cnt)) - 1;
6633 res = (d >> cnt) & mask;
6640 res |= (d << (9 - cnt));
6645 res |= 1 << (8 - cnt);
6649 /* OVERFLOW is set *IFF* cnt==1, then it is the xor of CF and
6652 if (cnt == 1) {
6666 uint32_t res, cnt;
6671 if ((cnt = s % 17) != 0) {
6672 if (cnt == 1) {
6676 cf = (d >> (cnt - 1)) & 0x1;
6677 mask = (1 << (16 - cnt)) - 1;
6678 res = (d >> cnt) & mask;
6679 res |= (d << (17 - cnt));
6681 res |= 1 << (16 - cnt);
6684 if (cnt == 1) {
6698 uint32_t res, cnt;
6703 if ((cnt = s % 33) != 0) {
6704 if (cnt == 1) {
6708 cf = (d >> (cnt - 1)) & 0x1;
6709 mask = (1 << (32 - cnt)) - 1;
6710 res = (d >> cnt) & mask;
6711 if (cnt != 1)
6712 res |= (d << (33 - cnt));
6714 res |= 1 << (32 - cnt);
6717 if (cnt == 1) {
6731 unsigned int res, cnt, mask;
6747 if ((cnt = s % 8) != 0) {
6749 res = (d << cnt);
6752 mask = (1 << cnt) - 1;
6753 res |= (d >> (8 - cnt)) & mask;
6777 unsigned int res, cnt, mask;
6780 if ((cnt = s % 16) != 0) {
6781 res = (d << cnt);
6782 mask = (1 << cnt) - 1;
6783 res |= (d >> (16 - cnt)) & mask;
6802 uint32_t res, cnt, mask;
6805 if ((cnt = s % 32) != 0) {
6806 res = (d << cnt);
6807 mask = (1 << cnt) - 1;
6808 res |= (d >> (32 - cnt)) & mask;
6827 unsigned int res, cnt, mask;
6842 if ((cnt = s % 8) != 0) { /* not a typo, do nada if cnt==0 */
6844 res = (d << (8 - cnt));
6847 mask = (1 << (8 - cnt)) - 1;
6848 res |= (d >> (cnt)) & mask;
6870 unsigned int res, cnt, mask;
6873 if ((cnt = s % 16) != 0) {
6874 res = (d << (16 - cnt));
6875 mask = (1 << (16 - cnt)) - 1;
6876 res |= (d >> (cnt)) & mask;
6893 uint32_t res, cnt, mask;
6896 if ((cnt = s % 32) != 0) {
6897 res = (d << (32 - cnt));
6898 mask = (1 << (32 - cnt)) - 1;
6899 res |= (d >> (cnt)) & mask;
6916 unsigned int cnt, res, cf;
6919 cnt = s % 8;
6922 if (cnt > 0) {
6923 res = d << cnt;
6924 cf = d & (1 << (8 - cnt));
6933 if (cnt == 1) {
6960 unsigned int cnt, res, cf;
6963 cnt = s % 16;
6964 if (cnt > 0) {
6965 res = d << cnt;
6966 cf = d & (1 << (16 - cnt));
6975 if (cnt == 1) {
7000 unsigned int cnt, res, cf;
7003 cnt = s % 32;
7004 if (cnt > 0) {
7005 res = d << cnt;
7006 cf = d & (1 << (32 - cnt));
7014 if (cnt == 1) {
7037 unsigned int cnt, res, cf;
7040 cnt = s % 8;
7041 if (cnt > 0) {
7042 cf = d & (1 << (cnt - 1));
7043 res = d >> cnt;
7052 if (cnt == 1) {
7074 unsigned int cnt, res, cf;
7077 cnt = s % 16;
7078 if (cnt > 0) {
7079 cf = d & (1 << (cnt - 1));
7080 res = d >> cnt;
7089 if (cnt == 1) {
7111 unsigned int cnt, res, cf;
7114 cnt = s % 32;
7115 if (cnt > 0) {
7116 cf = d & (1 << (cnt - 1));
7117 res = d >> cnt;
7125 if (cnt == 1) {
7147 unsigned int cnt, res, cf, mask, sf;
7151 cnt = s % 8;
7152 if (cnt > 0 && cnt < 8) {
7153 mask = (1 << (8 - cnt)) - 1;
7154 cf = d & (1 << (cnt - 1));
7155 res = (d >> cnt) & mask;
7163 } else if (cnt >= 8) {
7187 unsigned int cnt, res, cf, mask, sf;
7190 cnt = s % 16;
7192 if (cnt > 0 && cnt < 16) {
7193 mask = (1 << (16 - cnt)) - 1;
7194 cf = d & (1 << (cnt - 1));
7195 res = (d >> cnt) & mask;
7203 } else if (cnt >= 16) {
7227 uint32_t cnt, res, cf, mask, sf;
7230 cnt = s % 32;
7232 if (cnt > 0 && cnt < 32) {
7233 mask = (1 << (32 - cnt)) - 1;
7234 cf = d & (1 << (cnt - 1));
7235 res = (d >> cnt) & mask;
7243 } else if (cnt >= 32) {
7267 unsigned int cnt, res, cf;
7270 cnt = s % 16;
7271 if (cnt > 0) {
7272 res = (d << cnt) | (fill >> (16 - cnt));
7273 cf = d & (1 << (16 - cnt));
7281 if (cnt == 1) {
7304 unsigned int cnt, res, cf;
7307 cnt = s % 32;
7308 if (cnt > 0) {
7309 res = (d << cnt) | (fill >> (32 - cnt));
7310 cf = d & (1 << (32 - cnt));
7318 if (cnt == 1) {
7341 unsigned int cnt, res, cf;
7344 cnt = s % 16;
7345 if (cnt > 0) {
7346 cf = d & (1 << (cnt - 1));
7347 res = (d >> cnt) | (fill << (16 - cnt));
7356 if (cnt == 1) {
7378 unsigned int cnt, res, cf;
7381 cnt = s % 32;
7382 if (cnt > 0) {
7383 cf = d & (1 << (cnt - 1));
7384 res = (d >> cnt) | (fill << (32 - cnt));
7392 if (cnt == 1) {