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
This commit is contained in:
Behdad Esfahbod
2007-01-03 20:08:53 +00:00
committed by Behdad Esfahbod
parent bf1b1d2711
commit 048efdfbd5
4 changed files with 168 additions and 8 deletions

View File

@@ -65,6 +65,7 @@ test_programs = \
atomic-test \
array-test \
base64-test \
bit-test \
$(CXX_TEST) \
child-test \
completion-test \
@@ -130,6 +131,7 @@ module_ldadd = $(libgmodule) $(G_MODULE_LIBS) $(progs_ldadd)
atomic_test_LDADD = $(progs_ldadd)
array_test_LDADD = $(progs_ldadd)
base64_test_LDADD = $(progs_ldadd)
bit_test_LDADD = $(progs_ldadd)
bookmarkfile_test_LDADD = $(progs_ldadd)
child_test_LDADD = $(thread_ldadd)
completion_test_LDADD = $(progs_ldadd)