Revert "Add a fallback if log2() is not available"

This reverts commit 152c41487d78bc94a758d676c94223ee9f88e616.
Check if log2 is available
Add a C fallback for log2 if it is not defined