2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: unsigned 32 bit division/modulus functions for Amiga/m68k
9 #include "aros/m68k/asm.h"
14 .globl AROS_SLIB_ENTRY(UDivMod32,Utility,26)
15 .globl AROS_SLIB_ENTRY(UDivMod32_020,Utility,26)
17 .type AROS_SLIB_ENTRY(UDivMod32,Utility,26),@function
18 .type AROS_SLIB_ENTRY(UDivMod32_020,Utility,26),@function
20 AROS_SLIB_ENTRY
(UDivMod32_020
,Utility
,26):
25 This next algorithm is from the ixemul 41.0 source, the file
26 ./ixemul-41.0/gnulib/common.h
30 AROS_SLIB_ENTRY
(UDivMod32
,Utility
,26):
31 movem.
l %d2-
%d3
,-(%sp
)
37 beq.s
.Lsmall_division
47 movem.
l (%sp
)+,%d2-
%d3
67 movem.
l (%sp
)+,%d2-
%d3