Mail Archives: djgpp/1996/05/15/21:34:30
>The old v1.x library sources archive (djlsr112.zip) included the sources
>for these functions; if you can get that, you won't need to download the
>multi-megabyte gcc distribution.
Ah, I've found the functions, but I'm not sure which is which...
Here's my guesses, can anyone confirm:
__negdi2 negate -
__lshldi3 shift left >>
__lshrdi3 shift right <<
__ashldi3 ???
__ashrdi3 ???
__ffsdi2 ???
__muldi3 multipy *
__udiv_w_sdiv ???
__udivmoddi4 ???
__divdi3 divide /
__moddi3 mod %
__umoddi3 unsigned mod %
__udivdi3 unsigned divide /
__cmpdi2 compare >,>=,<,<=,==,!=
__ucmpdi2 unsigned compare >,>=,<,<=,==,!=
What happenened to addition and subtraction??
Eli - thanks for pointing djlsr112.zip out to me!
BTW, I seem to be missing "longlong.h". Anyone got it? Also, __muldi3
calls __umulsidi3, which I don't have either.
I've ported negate and compare and tested against a calculator program.
It works! The PowerPC is a little endian, but that doesn't seem to be
causing a problem...
Thanks
Adam
- Raw text -