Lines Matching refs:cnt
881 register unsigned int res, cnt, mask, cf; in rcl_byte() local
910 if ((cnt = s % 9) != 0) { in rcl_byte()
913 cf = (d >> (8 - cnt)) & 0x1; in rcl_byte()
919 res = (d << cnt) & 0xff; in rcl_byte()
927 mask = (1 << (cnt - 1)) - 1; in rcl_byte()
928 res |= (d >> (9 - cnt)) & mask; in rcl_byte()
933 res |= 1 << (cnt - 1); in rcl_byte()
941 CONDITIONAL_SET_FLAG(cnt == 1 && XOR2(cf + ((res >> 6) & 0x2)), F_OF); in rcl_byte()
954 register unsigned int res, cnt, mask, cf; in rcl_word() local
957 if ((cnt = s % 17) != 0) { in rcl_word()
958 cf = (d >> (16 - cnt)) & 0x1; in rcl_word()
959 res = (d << cnt) & 0xffff; in rcl_word()
960 mask = (1 << (cnt - 1)) - 1; in rcl_word()
961 res |= (d >> (17 - cnt)) & mask; in rcl_word()
963 res |= 1 << (cnt - 1); in rcl_word()
966 CONDITIONAL_SET_FLAG(cnt == 1 && XOR2(cf + ((res >> 14) & 0x2)), F_OF); in rcl_word()
978 register u32 res, cnt, mask, cf; in rcl_long() local
981 if ((cnt = s % 33) != 0) { in rcl_long()
982 cf = (d >> (32 - cnt)) & 0x1; in rcl_long()
983 res = (d << cnt) & 0xffffffff; in rcl_long()
984 mask = (1 << (cnt - 1)) - 1; in rcl_long()
985 res |= (d >> (33 - cnt)) & mask; in rcl_long()
987 res |= 1 << (cnt - 1); in rcl_long()
990 CONDITIONAL_SET_FLAG(cnt == 1 && XOR2(cf + ((res >> 30) & 0x2)), F_OF); in rcl_long()
1002 u32 res, cnt; in rcr_byte() local
1028 if ((cnt = s % 9) != 0) { in rcr_byte()
1031 if (cnt == 1) { in rcr_byte()
1043 cf = (d >> (cnt - 1)) & 0x1; in rcr_byte()
1052 mask = (1 << (8 - cnt)) - 1; in rcr_byte()
1053 res = (d >> cnt) & mask; in rcr_byte()
1061 res |= (d << (9 - cnt)); in rcr_byte()
1066 res |= 1 << (8 - cnt); in rcr_byte()
1073 if (cnt == 1) { in rcr_byte()
1087 u32 res, cnt; in rcr_word() local
1092 if ((cnt = s % 17) != 0) { in rcr_word()
1093 if (cnt == 1) { in rcr_word()
1098 cf = (d >> (cnt - 1)) & 0x1; in rcr_word()
1099 mask = (1 << (16 - cnt)) - 1; in rcr_word()
1100 res = (d >> cnt) & mask; in rcr_word()
1101 res |= (d << (17 - cnt)); in rcr_word()
1103 res |= 1 << (16 - cnt); in rcr_word()
1106 if (cnt == 1) { in rcr_word()
1120 u32 res, cnt; in rcr_long() local
1125 if ((cnt = s % 33) != 0) { in rcr_long()
1126 if (cnt == 1) { in rcr_long()
1131 cf = (d >> (cnt - 1)) & 0x1; in rcr_long()
1132 mask = (1 << (32 - cnt)) - 1; in rcr_long()
1133 res = (d >> cnt) & mask; in rcr_long()
1134 if (cnt != 1) in rcr_long()
1135 res |= (d << (33 - cnt)); in rcr_long()
1137 res |= 1 << (32 - cnt); in rcr_long()
1140 if (cnt == 1) { in rcr_long()
1154 register unsigned int res, cnt, mask; in rol_byte() local
1173 if ((cnt = s % 8) != 0) { in rol_byte()
1175 res = (d << cnt); in rol_byte()
1178 mask = (1 << cnt) - 1; in rol_byte()
1179 res |= (d >> (8 - cnt)) & mask; in rol_byte()
1204 register unsigned int res, cnt, mask; in rol_word() local
1207 if ((cnt = s % 16) != 0) { in rol_word()
1208 res = (d << cnt); in rol_word()
1209 mask = (1 << cnt) - 1; in rol_word()
1210 res |= (d >> (16 - cnt)) & mask; in rol_word()
1230 register u32 res, cnt, mask; in rol_long() local
1233 if ((cnt = s % 32) != 0) { in rol_long()
1234 res = (d << cnt); in rol_long()
1235 mask = (1 << cnt) - 1; in rol_long()
1236 res |= (d >> (32 - cnt)) & mask; in rol_long()
1256 register unsigned int res, cnt, mask; in ror_byte() local
1274 if ((cnt = s % 8) != 0) { /* not a typo, do nada if cnt==0 */ in ror_byte()
1276 res = (d << (8 - cnt)); in ror_byte()
1279 mask = (1 << (8 - cnt)) - 1; in ror_byte()
1280 res |= (d >> (cnt)) & mask; in ror_byte()
1304 register unsigned int res, cnt, mask; in ror_word() local
1307 if ((cnt = s % 16) != 0) { in ror_word()
1308 res = (d << (16 - cnt)); in ror_word()
1309 mask = (1 << (16 - cnt)) - 1; in ror_word()
1310 res |= (d >> (cnt)) & mask; in ror_word()
1329 register u32 res, cnt, mask; in ror_long() local
1332 if ((cnt = s % 32) != 0) { in ror_long()
1333 res = (d << (32 - cnt)); in ror_long()
1334 mask = (1 << (32 - cnt)) - 1; in ror_long()
1335 res |= (d >> (cnt)) & mask; in ror_long()
1354 unsigned int cnt, res, cf; in shl_byte() local
1357 cnt = s % 8; in shl_byte()
1360 if (cnt > 0) { in shl_byte()
1361 res = d << cnt; in shl_byte()
1362 cf = d & (1 << (8 - cnt)); in shl_byte()
1372 if (cnt == 1) { in shl_byte()
1401 unsigned int cnt, res, cf; in shl_word() local
1404 cnt = s % 16; in shl_word()
1405 if (cnt > 0) { in shl_word()
1406 res = d << cnt; in shl_word()
1407 cf = d & (1 << (16 - cnt)); in shl_word()
1417 if (cnt == 1) { in shl_word()
1443 unsigned int cnt, res, cf; in shl_long() local
1446 cnt = s % 32; in shl_long()
1447 if (cnt > 0) { in shl_long()
1448 res = d << cnt; in shl_long()
1449 cf = d & (1 << (32 - cnt)); in shl_long()
1458 if (cnt == 1) { in shl_long()
1484 unsigned int cnt, res, cf; in shr_byte() local
1487 cnt = s % 8; in shr_byte()
1488 if (cnt > 0) { in shr_byte()
1489 cf = d & (1 << (cnt - 1)); in shr_byte()
1490 res = d >> cnt; in shr_byte()
1500 if (cnt == 1) { in shr_byte()
1525 unsigned int cnt, res, cf; in shr_word() local
1528 cnt = s % 16; in shr_word()
1529 if (cnt > 0) { in shr_word()
1530 cf = d & (1 << (cnt - 1)); in shr_word()
1531 res = d >> cnt; in shr_word()
1541 if (cnt == 1) { in shr_word()
1566 unsigned int cnt, res, cf; in shr_long() local
1569 cnt = s % 32; in shr_long()
1570 if (cnt > 0) { in shr_long()
1571 cf = d & (1 << (cnt - 1)); in shr_long()
1572 res = d >> cnt; in shr_long()
1581 if (cnt == 1) { in shr_long()
1606 unsigned int cnt, res, cf, mask, sf; in sar_byte() local
1610 cnt = s % 8; in sar_byte()
1611 if (cnt > 0 && cnt < 8) { in sar_byte()
1612 mask = (1 << (8 - cnt)) - 1; in sar_byte()
1613 cf = d & (1 << (cnt - 1)); in sar_byte()
1614 res = (d >> cnt) & mask; in sar_byte()
1623 else if (cnt >= 8) { in sar_byte()
1649 unsigned int cnt, res, cf, mask, sf; in sar_word() local
1652 cnt = s % 16; in sar_word()
1654 if (cnt > 0 && cnt < 16) { in sar_word()
1655 mask = (1 << (16 - cnt)) - 1; in sar_word()
1656 cf = d & (1 << (cnt - 1)); in sar_word()
1657 res = (d >> cnt) & mask; in sar_word()
1666 else if (cnt >= 16) { in sar_word()
1692 u32 cnt, res, cf, mask, sf; in sar_long() local
1695 cnt = s % 32; in sar_long()
1697 if (cnt > 0 && cnt < 32) { in sar_long()
1698 mask = (1 << (32 - cnt)) - 1; in sar_long()
1699 cf = d & (1 << (cnt - 1)); in sar_long()
1700 res = (d >> cnt) & mask; in sar_long()
1709 else if (cnt >= 32) { in sar_long()
1735 unsigned int cnt, res, cf; in shld_word() local
1738 cnt = s % 16; in shld_word()
1739 if (cnt > 0) { in shld_word()
1740 res = (d << cnt) | (fill >> (16 - cnt)); in shld_word()
1741 cf = d & (1 << (16 - cnt)); in shld_word()
1750 if (cnt == 1) { in shld_word()
1776 unsigned int cnt, res, cf; in shld_long() local
1779 cnt = s % 32; in shld_long()
1780 if (cnt > 0) { in shld_long()
1781 res = (d << cnt) | (fill >> (32 - cnt)); in shld_long()
1782 cf = d & (1 << (32 - cnt)); in shld_long()
1791 if (cnt == 1) { in shld_long()
1817 unsigned int cnt, res, cf; in shrd_word() local
1820 cnt = s % 16; in shrd_word()
1821 if (cnt > 0) { in shrd_word()
1822 cf = d & (1 << (cnt - 1)); in shrd_word()
1823 res = (d >> cnt) | (fill << (16 - cnt)); in shrd_word()
1833 if (cnt == 1) { in shrd_word()
1858 unsigned int cnt, res, cf; in shrd_long() local
1861 cnt = s % 32; in shrd_long()
1862 if (cnt > 0) { in shrd_long()
1863 cf = d & (1 << (cnt - 1)); in shrd_long()
1864 res = (d >> cnt) | (fill << (32 - cnt)); in shrd_long()
1873 if (cnt == 1) { in shrd_long()