Fix bug in g_bit_nth_lsf (#371631) and use __builtin_clzl for
authorBehdad Esfahbod <behdad@gnome.org>
Wed, 3 Jan 2007 20:08:53 +0000 (20:08 +0000)
committerBehdad Esfahbod <behdad@src.gnome.org>
Wed, 3 Jan 2007 20:08:53 +0000 (20:08 +0000)
commit048efdfbd59b00fe184c1cda7e9cf4af9b447156
tree7bc74aaf55f37931c5ffe78a7f3cf32fa420d694
parentbf1b1d2711075d75aab68844ba15a5493686eec3
Fix bug in g_bit_nth_lsf (#371631) and use __builtin_clzl for

2007-01-03  Behdad Esfahbod  <behdad@gnome.org>

        * glib/gutils.h: Fix bug in g_bit_nth_lsf (#371631) and use
        __builtin_clzl for g_bit_storage if available (#371670).

        * tests/Makefile.am:
        * tests/bit-test.c: New test, to test g_bit_* operations against
        naive and builtin implementations.

svn path=/trunk/; revision=5200
ChangeLog
glib/gutils.h
tests/Makefile.am
tests/bit-test.c [new file with mode: 0644]