Blog

Jul 19, 2026
How I Wrote A Fixed-Point Solidity Sqrt That Runs In 197 Gas
A step-by-step walkthrough of writing a fixed-point sqrt in Solidity at 197 gas — from the first design decision to the final assembly, with gas benchmarks measured along the way.
Read more →
May 28, 2026
Counting leading zeros in Solidity using CLZ opcode
How DeFiMath uses the new CLZ opcode (EIP-7939) to power sqrt, cbrt, and ln — initial guesses and range reduction in a single instruction.
Read more →