Contiguous Arrays

Henry Spencer henry at utzoo.uucp
Sun Feb 26 14:48:28 AEST 1989


In article <9718 at smoke.BRL.MIL> gwyn at brl.arpa (Doug Gwyn (VLD/VMB) <gwyn>) writes:
>>To make it even more serious, I do not know of any twos-
>>complement computer that even has a signed vs. unsigned add instruction.
>
>They are one and the same.

Only if the instructions don't do anything drastic about overflow.  If they
do, then the two are different, as on (for example) the MIPS machines, which
have (if memory serves) a signed add that traps overflows and an unsigned
add that just wraps around.
-- 
The Earth is our mother;       |     Henry Spencer at U of Toronto Zoology
our nine months are up.        | uunet!attcan!utzoo!henry henry at zoo.toronto.edu



More information about the Comp.lang.c mailing list