Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!hc!beta!unm-la!unmvax!nmtsun!hydrovax From: hydrovax@nmtsun.nmt.edu (M. Warner Losh) Newsgroups: comp.lang.c Subject: Re: "logical" xor Message-ID: <1224@nmtsun.nmt.edu> Date: 13 Jan 88 00:58:41 GMT References: <2946@zeus.TEK.COM> <170@illusion.UUCP> Organization: NMT Hydrology program Lines: 21 Summary: A closed mind is a terrible thing to waste In article <170@illusion.UUCP>, marcus@illusion.UUCP (Marcus Hall) writes: > > Here I tend to agree with you, but there is a slight gain in not having to > optimize as much for the rare use of the ^^ operator. > I wasn't even aware that it was in the language (^^), so how can you tell if it's usage would be "rare" or "common". You can't. The ^ operator is rare because it is almost useless (except for doing bit twiddling in operating systems) in most applications. From a personal experience point of view (FORTRAN mostly), I find that I have used .XOR. (or .NEQV. for you 8x fans) on the VMS FORTRAN compiler about a half a dozen times in about 50K lines of code. Then again, I usually don't think in terms of XORs. -- bitnet: lush@nmt.csnet M. Warner Losh csnet: warner%hydrovax@nmtsun uucp: ...{cmcl2, ihnp4}!lanl!unmvax!nmtsun!warner%hydrovax ...{cmcl2, ihnp4}!lanl!unmvax!nmtsun!hydrovax Warning: Hydrovax is both a machine, and an account, so be careful.