1 typedef int HItype __attribute__ ((mode (HI)));
2 typedef int SItype __attribute__ ((mode (SI)));
3 typedef unsigned int USItype __attribute__ ((mode (SI)));
5 typedef int word_type __attribute__ ((mode (__word__)));
8 udivmodsi4(USItype num, USItype den, word_type modwanted)
13 while (den < num && bit && !(den & (1L<<31)))
28 if (modwanted) return num;
35 __divsi3 (SItype a, SItype b)
52 res = udivmodsi4 (a, b, 0);
63 __modsi3 (SItype a, SItype b)
77 res = udivmodsi4 (a, b, 1);
89 __udivsi3 (SItype a, SItype b)
91 return udivmodsi4 (a, b, 0);
97 __umodsi3 (SItype a, SItype b)
99 return udivmodsi4 (a, b, 1);
103 __ashlsi3 (SItype a, SItype b)
111 for (i = (b & 0x7); i > 0; --i)
117 __ashrsi3 (SItype a, SItype b)
125 for (i = (b & 0x7); i > 0; --i)
131 __lshrsi3 (USItype a, USItype b)
139 for (i = (b & 0x7); i > 0; --i)