Blog · 1 post
Quirks
Small puzzles and rabbit holes. Math, bits, and code that shouldn't work but does.
Sep 24, 2026 · QuirksPerfect Squares in C, No Math Library Required
No floats, no libm, every u64 correct. Three attempts at a perfect square test, from four billion subtractions down to a branchless loop built on a fact you learned in school.