]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
add g_bit_nth_lsf, g_bit_nth_msf, and g_bit_storage
authorJürg Billeter <j@bitron.ch>
Tue, 24 Apr 2007 09:34:13 +0000 (09:34 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Tue, 24 Apr 2007 09:34:13 +0000 (09:34 +0000)
2007-04-24  Jürg Billeter  <j@bitron.ch>

* vapi/glib-2.0.vala: add g_bit_nth_lsf, g_bit_nth_msf, and
  g_bit_storage

svn path=/trunk/; revision=288

vala/ChangeLog
vala/vapi/glib-2.0.vala

index ccfa10508f7c19212b566e50ef85daf30c748be3..16978c02ca836f734d8ef384bb0b7c7514d3fc4e 100644 (file)
@@ -1,3 +1,8 @@
+2007-04-24  Jürg Billeter  <j@bitron.ch>
+
+       * vapi/glib-2.0.vala: add g_bit_nth_lsf, g_bit_nth_msf, and
+         g_bit_storage
+
 2007-04-24  Jürg Billeter  <j@bitron.ch>
 
        * vala/valacallback.vala: add possibility to override default cname
index 94e5321bcdd53f56799940e43591a393e4ad3222..5523a0f88af395606902f6e507726bf6e78a4221 100644 (file)
@@ -1065,6 +1065,12 @@ namespace GLib {
                public static ref string build_filename (string first_element, ...);
        }
 
+       public static class Bit {
+               public static int nth_lsf (ulong mask, int nth_bit);
+               public static int nth_msf (ulong mask, int nth_bit);
+               public static uint storage (ulong number);
+       }
+
        public static class SpacedPrimes {
                public static uint closest (uint num);
        }