News for hackers. Stuff that matters.
Re:That XOR Trick (2020) by nullc on Wednesday July 02, 2025 @09:28PM (#44450698)
Tables yuck :P, maybe

XOR[0...x] = (x&1^(x&2)>>1)+x*(~x&1)

Re:That XOR Trick (2020) by bsdz on Thursday July 03, 2025 @03:00AM (#44452394)
~Is there a simple proof for this type of identity?~

Actually I found something through Gemini based on the table mod 4 idea in previous post. Thanks.