The manual page states that log2 returns the natural log, not the base two log.
Note: The documentation problem was first seen on a RH9 system, and I saw it on my FC4 system. Both are RH distros (sort of), so it may not be a general problem. Fairly minor, in any case. -- Summary: Error in log2 man page Product: gcc Version: 4.0.1 Status: UNCONFIRMED Severity: minor Priority: P2 Component: other AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: PTrenholme at 4DV dot net CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24131