Lines Matching refs:cnt

726     unsigned int res, cnt, mask, cf;  in rcl_byte()  local
755 if ((cnt = s % 9) != 0) { in rcl_byte()
758 cf = (d >> (8 - cnt)) & 0x1; in rcl_byte()
764 res = (d << cnt) & 0xff; in rcl_byte()
772 mask = (1 << (cnt - 1)) - 1; in rcl_byte()
773 res |= (d >> (9 - cnt)) & mask; in rcl_byte()
778 res |= 1 << (cnt - 1); in rcl_byte()
786 CONDITIONAL_SET_FLAG(cnt == 1 && XOR2(cf + ((res >> 6) & 0x2)), in rcl_byte()
799 unsigned int res, cnt, mask, cf; in rcl_word() local
802 if ((cnt = s % 17) != 0) { in rcl_word()
803 cf = (d >> (16 - cnt)) & 0x1; in rcl_word()
804 res = (d << cnt) & 0xffff; in rcl_word()
805 mask = (1 << (cnt - 1)) - 1; in rcl_word()
806 res |= (d >> (17 - cnt)) & mask; in rcl_word()
808 res |= 1 << (cnt - 1); in rcl_word()
811 CONDITIONAL_SET_FLAG(cnt == 1 && XOR2(cf + ((res >> 14) & 0x2)), in rcl_word()
823 u32 res, cnt, mask, cf; in rcl_long() local
826 if ((cnt = s % 33) != 0) { in rcl_long()
827 cf = (d >> (32 - cnt)) & 0x1; in rcl_long()
828 res = (d << cnt) & 0xffffffff; in rcl_long()
829 mask = (1 << (cnt - 1)) - 1; in rcl_long()
830 res |= (d >> (33 - cnt)) & mask; in rcl_long()
832 res |= 1 << (cnt - 1); in rcl_long()
835 CONDITIONAL_SET_FLAG(cnt == 1 && XOR2(cf + ((res >> 30) & 0x2)), in rcl_long()
847 u32 res, cnt; in rcr_byte() local
873 if ((cnt = s % 9) != 0) { in rcr_byte()
876 if (cnt == 1) { in rcr_byte()
887 cf = (d >> (cnt - 1)) & 0x1; in rcr_byte()
896 mask = (1 << (8 - cnt)) - 1; in rcr_byte()
897 res = (d >> cnt) & mask; in rcr_byte()
905 res |= (d << (9 - cnt)); in rcr_byte()
910 res |= 1 << (8 - cnt); in rcr_byte()
917 if (cnt == 1) { in rcr_byte()
931 u32 res, cnt; in rcr_word() local
936 if ((cnt = s % 17) != 0) { in rcr_word()
937 if (cnt == 1) { in rcr_word()
941 cf = (d >> (cnt - 1)) & 0x1; in rcr_word()
942 mask = (1 << (16 - cnt)) - 1; in rcr_word()
943 res = (d >> cnt) & mask; in rcr_word()
944 res |= (d << (17 - cnt)); in rcr_word()
946 res |= 1 << (16 - cnt); in rcr_word()
949 if (cnt == 1) { in rcr_word()
963 u32 res, cnt; in rcr_long() local
968 if ((cnt = s % 33) != 0) { in rcr_long()
969 if (cnt == 1) { in rcr_long()
973 cf = (d >> (cnt - 1)) & 0x1; in rcr_long()
974 mask = (1 << (32 - cnt)) - 1; in rcr_long()
975 res = (d >> cnt) & mask; in rcr_long()
976 if (cnt != 1) in rcr_long()
977 res |= (d << (33 - cnt)); in rcr_long()
979 res |= 1 << (32 - cnt); in rcr_long()
982 if (cnt == 1) { in rcr_long()
996 unsigned int res, cnt, mask; in rol_byte() local
1015 if ((cnt = s % 8) != 0) { in rol_byte()
1017 res = (d << cnt); in rol_byte()
1020 mask = (1 << cnt) - 1; in rol_byte()
1021 res |= (d >> (8 - cnt)) & mask; in rol_byte()
1045 unsigned int res, cnt, mask; in rol_word() local
1048 if ((cnt = s % 16) != 0) { in rol_word()
1049 res = (d << cnt); in rol_word()
1050 mask = (1 << cnt) - 1; in rol_word()
1051 res |= (d >> (16 - cnt)) & mask; in rol_word()
1070 u32 res, cnt, mask; in rol_long() local
1073 if ((cnt = s % 32) != 0) { in rol_long()
1074 res = (d << cnt); in rol_long()
1075 mask = (1 << cnt) - 1; in rol_long()
1076 res |= (d >> (32 - cnt)) & mask; in rol_long()
1095 unsigned int res, cnt, mask; in ror_byte() local
1113 if ((cnt = s % 8) != 0) { /* not a typo, do nada if cnt==0 */ in ror_byte()
1115 res = (d << (8 - cnt)); in ror_byte()
1118 mask = (1 << (8 - cnt)) - 1; in ror_byte()
1119 res |= (d >> (cnt)) & mask; in ror_byte()
1141 unsigned int res, cnt, mask; in ror_word() local
1144 if ((cnt = s % 16) != 0) { in ror_word()
1145 res = (d << (16 - cnt)); in ror_word()
1146 mask = (1 << (16 - cnt)) - 1; in ror_word()
1147 res |= (d >> (cnt)) & mask; in ror_word()
1164 u32 res, cnt, mask; in ror_long() local
1167 if ((cnt = s % 32) != 0) { in ror_long()
1168 res = (d << (32 - cnt)); in ror_long()
1169 mask = (1 << (32 - cnt)) - 1; in ror_long()
1170 res |= (d >> (cnt)) & mask; in ror_long()
1187 unsigned int cnt, res, cf; in shl_byte() local
1190 cnt = s % 8; in shl_byte()
1193 if (cnt > 0) { in shl_byte()
1194 res = d << cnt; in shl_byte()
1195 cf = d & (1 << (8 - cnt)); in shl_byte()
1202 if (cnt == 1) { in shl_byte()
1229 unsigned int cnt, res, cf; in shl_word() local
1232 cnt = s % 16; in shl_word()
1233 if (cnt > 0) { in shl_word()
1234 res = d << cnt; in shl_word()
1235 cf = d & (1 << (16 - cnt)); in shl_word()
1242 if (cnt == 1) { in shl_word()
1267 unsigned int cnt, res, cf; in shl_long() local
1270 cnt = s % 32; in shl_long()
1271 if (cnt > 0) { in shl_long()
1272 res = d << cnt; in shl_long()
1273 cf = d & (1 << (32 - cnt)); in shl_long()
1279 if (cnt == 1) { in shl_long()
1302 unsigned int cnt, res, cf; in shr_byte() local
1305 cnt = s % 8; in shr_byte()
1306 if (cnt > 0) { in shr_byte()
1307 cf = d & (1 << (cnt - 1)); in shr_byte()
1308 res = d >> cnt; in shr_byte()
1315 if (cnt == 1) { in shr_byte()
1337 unsigned int cnt, res, cf; in shr_word() local
1340 cnt = s % 16; in shr_word()
1341 if (cnt > 0) { in shr_word()
1342 cf = d & (1 << (cnt - 1)); in shr_word()
1343 res = d >> cnt; in shr_word()
1350 if (cnt == 1) { in shr_word()
1372 unsigned int cnt, res, cf; in shr_long() local
1375 cnt = s % 32; in shr_long()
1376 if (cnt > 0) { in shr_long()
1377 cf = d & (1 << (cnt - 1)); in shr_long()
1378 res = d >> cnt; in shr_long()
1384 if (cnt == 1) { in shr_long()
1406 unsigned int cnt, res, cf, mask, sf; in sar_byte() local
1410 cnt = s % 8; in sar_byte()
1411 if (cnt > 0 && cnt < 8) { in sar_byte()
1412 mask = (1 << (8 - cnt)) - 1; in sar_byte()
1413 cf = d & (1 << (cnt - 1)); in sar_byte()
1414 res = (d >> cnt) & mask; in sar_byte()
1420 } else if (cnt >= 8) { in sar_byte()
1444 unsigned int cnt, res, cf, mask, sf; in sar_word() local
1447 cnt = s % 16; in sar_word()
1449 if (cnt > 0 && cnt < 16) { in sar_word()
1450 mask = (1 << (16 - cnt)) - 1; in sar_word()
1451 cf = d & (1 << (cnt - 1)); in sar_word()
1452 res = (d >> cnt) & mask; in sar_word()
1458 } else if (cnt >= 16) { in sar_word()
1482 u32 cnt, res, cf, mask, sf; in sar_long() local
1485 cnt = s % 32; in sar_long()
1487 if (cnt > 0 && cnt < 32) { in sar_long()
1488 mask = (1 << (32 - cnt)) - 1; in sar_long()
1489 cf = d & (1 << (cnt - 1)); in sar_long()
1490 res = (d >> cnt) & mask; in sar_long()
1496 } else if (cnt >= 32) { in sar_long()
1520 unsigned int cnt, res, cf; in shld_word() local
1523 cnt = s % 16; in shld_word()
1524 if (cnt > 0) { in shld_word()
1525 res = (d << cnt) | (fill >> (16-cnt)); in shld_word()
1526 cf = d & (1 << (16 - cnt)); in shld_word()
1532 if (cnt == 1) { in shld_word()
1555 unsigned int cnt, res, cf; in shld_long() local
1558 cnt = s % 32; in shld_long()
1559 if (cnt > 0) { in shld_long()
1560 res = (d << cnt) | (fill >> (32-cnt)); in shld_long()
1561 cf = d & (1 << (32 - cnt)); in shld_long()
1567 if (cnt == 1) { in shld_long()
1590 unsigned int cnt, res, cf; in shrd_word() local
1593 cnt = s % 16; in shrd_word()
1594 if (cnt > 0) { in shrd_word()
1595 cf = d & (1 << (cnt - 1)); in shrd_word()
1596 res = (d >> cnt) | (fill << (16 - cnt)); in shrd_word()
1603 if (cnt == 1) { in shrd_word()
1625 unsigned int cnt, res, cf; in shrd_long() local
1628 cnt = s % 32; in shrd_long()
1629 if (cnt > 0) { in shrd_long()
1630 cf = d & (1 << (cnt - 1)); in shrd_long()
1631 res = (d >> cnt) | (fill << (32 - cnt)); in shrd_long()
1637 if (cnt == 1) { in shrd_long()