2 * This file is part of GNU CC.
4 * GNU CC is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published
6 * by the Free Software Foundation; either version 2, or (at your
7 * option) any later version.
9 * GNU CC is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public
15 * License along with GNU CC; see the file COPYING. If not, write
16 * to the Free Software Foundation, 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
23 USItype udivmodsi4 (USItype num, USItype den, word_type modwanted)
28 while (den < num && bit && !(den & (1L << 31))) {
46 SItype __divsi3 (SItype a, SItype b)
61 res = udivmodsi4 (a, b, 0);
70 SItype __modsi3 (SItype a, SItype b)
83 res = udivmodsi4 (a, b, 1);
92 SItype __udivsi3 (SItype a, SItype b)
94 return udivmodsi4 (a, b, 0);
98 SItype __umodsi3 (SItype a, SItype b)
100 return udivmodsi4 (a, b, 1);