How to reverse bits...

Walter Bright bright at Data-IO.COM
Thu Aug 16 04:09:30 AEST 1990


In article <1990Aug14.203212.16248 at motcad.portal.com> jtc at motcad.portal.com (J.T. Conklin) writes:
<Another useful table is one that flips the bits 1-for-0,0-for-1.  This
<is useful for inverting an image.

What's wrong with:

	c = ~c;

?



More information about the Comp.lang.c mailing list