Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/5/84; site uwmacc.UUCP
Path: utzoo!watmath!clyde!cbosgd!ihnp4!mhuxn!mhuxr!ulysses!gamma!epsilon!zeta!sabre!petrus!bellcore!decvax!genrad!panda!talcott!harvard!seismo!uwvax!uwmacc!bllklly
From: bllklly@uwmacc.UUCP (Bill Kelly)
Newsgroups: net.bizarre
Subject: Bizarre code
Message-ID: <1418@uwmacc.UUCP>
Date: Fri, 23-Aug-85 13:32:13 EDT
Article-I.D.: uwmacc.1418
Posted: Fri Aug 23 13:32:13 1985
Date-Received: Mon, 26-Aug-85 00:48:40 EDT
Distribution: net
Organization: UWisconsin-Madison Academic Comp Center
Lines: 13

The Sperry Univac 1100 is a ones-complement machine. The old Fortran compiler
took no special pains to avoid generating -0 in calculations.  However, 
for a statement like IF (X >=0) it would generate a Test Positive
instruction, which fails for -0.  Therefore, Fortran programs were always
sprinkled with statements to convert a possible -0 to 0:
	IF (X=0) X=0
Bizarre.
-- 
Bi||     {allegra, ihnp4, seismo}!uwvax!uwmacc!bllklly
Ke||y    UW-Madison, 1210 West Dayton St., Madison WI 53706

"Anyone can do any amount of work provided it isn't the work he is supposed
 to be doing at that moment." -- Robert Benchley