News for hackers. Stuff that matters.
Re:Making all your integers positive with zigzag encoding by Ferrotin on Friday November 25, 2022 @03:21PM (#33746349)
Wouldn’t they use a plain bitmask instead, the lsb indicating negation, with 3 being the negation of 2? That’s zigzag encoding with a negative zero.
Re:Making all your integers positive with zigzag encoding by k0k0r0 on Friday November 25, 2022 @05:53PM (#33747765)
If I understand you correctly, then that exactly what I am talking about. You might see this as bitmask. That's correct.