toplev.c (floor_log2_wide): Replace loop with faster bit operations.
authorDJ Delorie <dj@redhat.com>
Tue, 8 Jun 2004 19:24:07 +0000 (15:24 -0400)
committerDJ Delorie <dj@gcc.gnu.org>
Tue, 8 Jun 2004 19:24:07 +0000 (15:24 -0400)
commit73d10efa86de15b218ab2030a9d02d4e396afe2c
tree887165390ca703d20364aad9a0a6ada538084ea9
parent3b48085e661950a1e6fdaf1997cda53ed8388064
toplev.c (floor_log2_wide): Replace loop with faster bit operations.

* toplev.c (floor_log2_wide): Replace loop with faster bit
operations.
(exact_log2_wide): Define in terms of the above.
* toplev.h (floor_log2): Use _builtin_clz family of builtins if
available.

From-SVN: r82778
gcc/ChangeLog
gcc/toplev.c
gcc/toplev.h