Hacker News new | past | comments | ask | show | jobs | submit login

This bit in an answer further down made me chuckle:

> My implementation of square root using binary search, that doesn't depend on a multiplier. Only basic ALU instructions are used. It is vigorously undocumented. I have no idea what I wrote but it seems to work.

A fine reminder that if we write clever code, we're probably not going to remember how it works.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: