avoid shadowing of log2 on some platforms.
avoid shadowing of recv.