mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-24 10:57:53 +02:00
64-bit cleanliness fixes.
Sat Jan 10 00:11:12 2004 Manish Singh <yosh@gimp.org> * glib/gutils.h (g_bit_nth_lsf,g_bit_nth_msf): 64-bit cleanliness fixes. * docs/reference/glib/tmpl/misc_utils.sgml: update to reflect the above take gulongs now. My docs suck, someone should revisit it.
This commit is contained in:
committed by
Manish Singh
parent
93ec5cfa66
commit
2dfeabdd9b
@@ -225,10 +225,11 @@ freed when no longer needed.
|
||||
<para>
|
||||
Find the position of the first bit set in @mask, searching from (but not
|
||||
including) @nth_bit upwards. Bits are numbered from 0 (least significant)
|
||||
to 31. To start searching from the 0th bit, set @nth_bit to -1.
|
||||
to sizeof(#gulong) * 8 - 1 (31 or 63, usually). To start searching from the
|
||||
0th bit, set @nth_bit to -1.
|
||||
</para>
|
||||
|
||||
@mask: a #guint32 containing up to 32 bit flags.
|
||||
@mask: a #gulong containing flags.
|
||||
@nth_bit: the index of the bit to start the search from.
|
||||
@Returns: the index of the first bit set which is higher than @nth_bit.
|
||||
|
||||
@@ -237,10 +238,11 @@ to 31. To start searching from the 0th bit, set @nth_bit to -1.
|
||||
<para>
|
||||
Find the position of the first bit set in @mask, searching from (but not
|
||||
including) @nth_bit downwards. Bits are numbered from 0 (least significant)
|
||||
to 31. To start searching from the 31st bit, set @nth_bit to 32 or -1.
|
||||
to sizeof(#gulong) * 8 - 1 (31 or 63, usually). To start searching from the
|
||||
last bit, set @nth_bit to -1 or GLIB_SIZEOF_LONG * 8.
|
||||
</para>
|
||||
|
||||
@mask: a #guint32 containing up to 32 bit flags.
|
||||
@mask: a #gulong containing flags.
|
||||
@nth_bit: the index of the bit to start the search from.
|
||||
@Returns: the index of the first bit set which is lower than @nth_bit.
|
||||
|
||||
|
Reference in New Issue
Block a user