More Oyster Woes ...
Sam Wilson wrote
... but they are distinguishable, even in languages that do not
offer
access to the bit patterns as such.
... though I don't know of any higher-level languages that let you
distinguish between +0 and -0 integers even on hardware that supports
the distinction. (And FWIW the TCP/IP suite uses ones-complement
arithmetic in its checksum calculations.)
Fortran on the Univac/Unisys 1100 series (which used one-complement
single and double integers and indeed floating point). IIRC the CDC
6600/7600 was the same in providing functions for bit-wise AND, OR, XOR
and NOT.
--
Mike D
|