Hacker News with Generative AI: Integer Arithmetic

Counting the digits of 64-bit integers (lemire.me)
Given an integer in software, you may want to know how many decimal digits it needs. For example, the integer 100 requires 3 digits, the integer 9999 requires 4 digits.
Reciprocal Approximation with 1 Subtraction (ycombinator.com)
Today's find: You can get a floating-point approximation of 1/x that's accurate to 3 bits with a single integer subtraction instruction.