using !

Jay A. Konigsberg jak at sactoh0.SAC.CA.US
Sat Dec 22 12:03:40 AEST 1990


In article <009417DC.37A9DCA0 at cemmva.cem.msu.edu> heroux at cemmva.cem.msu.edu (Brett Heroux) writes:
>
>Is !(a > b) portable? slower or faster than  a <= b?
>
I compiled the following two programs on a 3B2-400 Sys V.3.2

main()               main()
{ int a,b;           { int a,b;
  !(a>b);              a<=b;
}                    }

cc -S foo.c          cc -S foo2.c

This is the diff:

1c1
< 	.file	"foo.c"
---
> 	.file	"foo2.c"

Accucally, I was a bit surprised. Perhaps other compliers produce
something different?

-- 
-------------------------------------------------------------
Jay @ SAC-UNIX, Sacramento, Ca.   UUCP=...pacbell!sactoh0!jak
If something is worth doing, it's worth doing correctly.



More information about the Comp.lang.c mailing list