DIV and MOD ( was: Something IBM di

Dave Jones djones at megatest.UUCP
Thu Nov 10 15:01:41 AEST 1988


>From article <225800089 at uxe.cso.uiuc.edu>, by mcdonald at uxe.cso.uiuc.edu:

[ Description of one's complement arithmetic omited. }

> Perhaps you are unfamiliar with this
> relatively common method. On some machines -1 >> 1 == -1, but not
> all machines - and not necessarily in ANSI C.
> 
> 
> :-)   :-)   :-)


Nah.  I'm familiar with it.  I just thought maybe if I closed
my eyes, it would go away, along with all those communist-inspired
negative remainders.

Here.  Have a smiley on me: :-)


		Dave J.



More information about the Comp.lang.c mailing list