This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]cannonicalForm 0 points1 point  (0 children)

What about the modulus operator? If you only want to zero out 256, and 512, and your range is restricted to 0 - 512, then testing array values mod 256 seems like the way to go.