2 * Written by Ulrich Drepper <drepper@cygnus.com>.
3 * Based on e_remainder by J.T. Conklin <jtc@netbsd.org>.
7 #include <machine/asm.h>
11 #define PARMS LINKAGE /* no space for saved regs */
17 ENTRY (BP_SYM (__remquo))
27 /* Compute the congruent of the quotient. */
34 leal (%ecx,%ecx,2),%ecx
39 CHECK_BOUNDS_BOTH_WIDE (%ecx, QUOP(%esp), $4)
40 movl DVDND+4(%esp), %edx
41 xorl DVSOR+4(%esp), %edx
42 testl $0x80000000, %edx
49 END (BP_SYM (__remquo))
50 weak_alias (BP_SYM (__remquo), BP_SYM (remquo))