> + // Use a fast table for some small values. This also gets rid of
> some
> + // rounding errors in libc sqrt for small values.
> + if (magnitude <= 5) {
Please use a real table, not a switch, for this. It will be smaller
(codesize) and faster.
-Chris