using !

Marc Brandis brandis at inf.ethz.ch
Sat Dec 22 00:05:53 AEST 1990


In article <009417DC.37A9DCA0 at cemmva.cem.msu.edu> heroux at 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 at inf.ethz.ch



More information about the Comp.lang.c mailing list