Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!usc!apple!austing From: austing@Apple.COM (Glenn L. Austin) Newsgroups: comp.lang.c Subject: Re: How to reverse bits... Message-ID: <43975@apple.Apple.COM> Date: 15 Aug 90 05:10:02 GMT References: <2059@ux.acs.umn.edu> <1990Aug14.203212.16248@motcad.portal.com> Organization: Apple Computer Inc., Cupertino, CA Lines: 16 jtc@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. How about "c ^= (char) -1"? -- ----------------------------------------------------------------------------- | Glenn L. Austin | "Turn too soon, run out of room, | | Auto Racing Enthusiast and | Turn too late, much better fate" | | Communications Toolbox Hacker | - Jim Russell Racing School Instructors | | Apple Computer, Inc. | "Drive slower, race faster" - D. Waltrip | | Internet: austing@apple.com |-------------------------------------------| | AppleLink: AUSTIN.GLENN | All opinions stated above are mine -- | | Bellnet: (408) 974-0876 | who else would want them? | -----------------------------------------------------------------------------