[macruby-changes] [2028] MacRuby/branches/experimental/numeric.c
source_changes at macosforge.org
source_changes at macosforge.org
Wed Jul 15 13:13:07 PDT 2009
Revision: 2028
http://trac.macosforge.org/projects/ruby/changeset/2028
Author: pthomson at apple.com
Date: 2009-07-15 13:13:06 -0700 (Wed, 15 Jul 2009)
Log Message:
-----------
Added some documentation to Fixnum#popcnt.
Modified Paths:
--------------
MacRuby/branches/experimental/numeric.c
Modified: MacRuby/branches/experimental/numeric.c
===================================================================
--- MacRuby/branches/experimental/numeric.c 2009-07-15 20:04:43 UTC (rev 2027)
+++ MacRuby/branches/experimental/numeric.c 2009-07-15 20:13:06 UTC (rev 2028)
@@ -3113,6 +3113,15 @@
return Qfalse;
}
+/*
+ * call-seq:
+ * fix.popcnt => Fixnum
+ *
+ * Returns the number of 1 bits set in the internal representation of
+ * <i>fix</i>. This function returns consistent results across platforms for
+ * positive numbers, but may vary for negative numbers.
+ *
+ */
static VALUE
fix_popcnt(VALUE num, SEL sel)
{
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090715/f2430e80/attachment.html>
More information about the macruby-changes
mailing list