1 /************************************************************************/
2 /* This file contains the BCC compiler helper functions */
3 /* (C) Copyright Bruce Evans */
4 /* Support for 386 integer arithmetic
5 * __divsi3.o __idiv.o __idivu.o __imod.o __imodu.o __imul.o
6 * __isl.o __isr.o __isru.o
11 .text
! This is common to all
.
44 ! idiv_ doesn`t preserve
edx (returns remainder in it
)
57 ! idiv_u doesn`t preserve
edx (returns remainder in it
)
70 ! imod doesn`t preserve
edx (returns quotient in it
)
76 mov eax
,edx
! instruction queue full so xchg slower
84 ! imodu doesn`t preserve
edx (returns quotient in it
)
90 mov eax
,edx
! instruction queue full so xchg slower
98 ! imul_
, imul_u don`t preserve edx
112 ! isl
, islu don`t preserve cl
127 ! isr doesn`t preserve cl
140 ! isru doesn`t preserve cl