reversing a mask

ix269 at sdcc6.UUCP ix269 at sdcc6.UUCP
Wed Dec 19 19:29:34 AEST 1984


fig()

It is quite simple, to reverse a bit mask, merely get a ones compliment (sp?).

that is  ~mask		mask = 011101 /* binary notation, leading zero */
			010 = ~mask

this is convenient for purists who *know* that 0 is always FALSE and that
!0 is the value of TRUE, ~0 is most definitely the opposite of 0, but I may
be asking for it.

fourier transforms?  Must be a nice machine for that overhead :-).



More information about the Comp.lang.c mailing list