From owner-cvs-all Wed Nov 15 0:58:49 2000 Delivered-To: cvs-all@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id 52B2A37B4C5; Wed, 15 Nov 2000 00:58:45 -0800 (PST) Received: from gosset.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 15 Nov 2000 08:58:44 +0000 (GMT) Date: Wed, 15 Nov 2000 08:58:43 +0000 From: David Malone To: "Daniel C. Sobral" Cc: Garance A Drosehn , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.sbin/lpr/lpd printjob.c Message-ID: <20001115085843.A15581@gosset.maths.tcd.ie> References: <200011142132.NAA19274@freefall.freebsd.org> <3A11B20A.8AE1A5CA@newsguy.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3A11B20A.8AE1A5CA@newsguy.com>; from dcs@newsguy.com on Wed, Nov 15, 2000 at 06:43:38AM +0900 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Nov 15, 2000 at 06:43:38AM +0900, Daniel C. Sobral wrote: > That's true, but, afaik, C standard mandates 2's complement. Also, you > forgot 0x01 for sign-bit. :-) C99 says that signed types shall be stored as a sign bit, value bits and optional padding bits. If the sign bit is zero then the value of the object is the same as if it were unsigned. If the sign bit is one then you can choose from: - sign and magnitude - two's complement - one's complement (unsigned types can also have padding bits). David. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message