Date: Wed, 15 Nov 2000 08:58:43 +0000 From: David Malone <dwmalone@maths.tcd.ie> To: "Daniel C. Sobral" <dcs@newsguy.com> Cc: Garance A Drosehn <gad@FreeBSD.org>, 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> In-Reply-To: <3A11B20A.8AE1A5CA@newsguy.com>; from dcs@newsguy.com on Wed, Nov 15, 2000 at 06:43:38AM %2B0900 References: <200011142132.NAA19274@freefall.freebsd.org> <3A11B20A.8AE1A5CA@newsguy.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001115085843.A15581>