Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!mips!spool2.mu.edu!uunet!mcsun!cernvax!chx400!bernina!neptune!inf.ethz.ch!brandis From: brandis@inf.ethz.ch (Marc Brandis) Newsgroups: comp.lang.c Subject: Re: using ! Message-ID: <19161@neptune.inf.ethz.ch> Date: 21 Dec 90 13:05:53 GMT References: <009417DC.37A9DCA0@cemmva.cem.msu.edu> Sender: news@neptune.inf.ethz.ch Reply-To: brandis@inf.ethz.ch (Marc Brandis) Organization: Departement Informatik, ETH, Zurich Lines: 18 In article <009417DC.37A9DCA0@cemmva.cem.msu.edu> heroux@cemmva.cem.msu.edu (Brett Heroux) writes: > >Is !(a > b) portable? Yes! > slower or faster than a <= b? Exactly the same for every compiler that I know of. However, if could be both ways round, but it is very likely that you will even get the same code for both statements. When you should ever find a place where you have to care about it, it is probably time to use assembly for this piece of code -:) Marc-Michael Brandis Computer Systems Laboratory, ETH-Zentrum (Swiss Federal Institute of Technology) CH-8092 Zurich, Switzerland email: brandis@inf.ethz.ch