Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!uakari.primate.wisc.edu!pikes!aspen.craycos.com!pmk From: pmk@craycos.com (Peter Klausler) Newsgroups: comp.lang.c Subject: Re: IsUnsigned() function? Message-ID: <1990Jul20.222412.7669@craycos.com> Date: 20 Jul 90 22:24:12 GMT Organization: Cray Computer Corporation Lines: 11 macphee@convex.COM proposes: > int > IsUnsigned(x) > unsigned x ; > { > return(x&(1<<(sizeof(int)-1))) ; > } From this code I can conclude that Convex uses a 1-bit character set and that a sign bit of 1 indicates a positive value, not a negative one. Amazing what's being done in hardware these days, no?