www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/05/15/21:34:30

Message-Id: <199605160131.LAA15388@tornado.netspace.net.au>
Subject: Re: 64-bit integers
Date: Thu, 16 May 96 11:36:57 +1000
From: Adam Hinkley <hinks AT netspace DOT net DOT au>
To: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
cc: <lav AT video DOT yars DOT free DOT net>, <djgpp AT delorie DOT com>, <j DOT aldrich6 AT genie DOT com>
Mime-Version: 1.0

>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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019