[macruby-changes] [1868] MacRuby/branches/fp-optimized-experimental
source_changes at macosforge.org
source_changes at macosforge.org
Mon Jun 15 18:40:51 PDT 2009
Revision: 1868
http://trac.macosforge.org/projects/ruby/changeset/1868
Author: pthomson at apple.com
Date: 2009-06-15 18:40:51 -0700 (Mon, 15 Jun 2009)
Log Message:
-----------
Added a TODO and got rid of the Float#__immediate__? method, as all floats are fixfloats now.
Modified Paths:
--------------
MacRuby/branches/fp-optimized-experimental/TODO
MacRuby/branches/fp-optimized-experimental/numeric.c
Modified: MacRuby/branches/fp-optimized-experimental/TODO
===================================================================
--- MacRuby/branches/fp-optimized-experimental/TODO 2009-06-16 01:39:37 UTC (rev 1867)
+++ MacRuby/branches/fp-optimized-experimental/TODO 2009-06-16 01:40:51 UTC (rev 1868)
@@ -75,3 +75,4 @@
[ ] test/spec
[ ] mocha
[X] known_bugs
+[ ] for JIT, make divide-by-zero work properly.
\ No newline at end of file
Modified: MacRuby/branches/fp-optimized-experimental/numeric.c
===================================================================
--- MacRuby/branches/fp-optimized-experimental/numeric.c 2009-06-16 01:39:37 UTC (rev 1867)
+++ MacRuby/branches/fp-optimized-experimental/numeric.c 2009-06-16 01:40:51 UTC (rev 1868)
@@ -1384,19 +1384,6 @@
/*
* call-seq:
- * flt.__immediate__? -> true or false
- *
- * Returns <code>true</code> if <i>fix</i> is an even number.
- */
-
-static VALUE
-flo_immediate_p(VALUE num, SEL sel)
-{
- return (FIXFLOAT_P(num) ? Qtrue : Qfalse);
-}
-
-/*
- * call-seq:
* num.floor => integer
*
* Returns the largest integer less than or equal to <i>num</i>.
@@ -3386,7 +3373,6 @@
rb_objc_define_method(rb_cFloat, "nan?", flo_is_nan_p, 0);
rb_objc_define_method(rb_cFloat, "infinite?", flo_is_infinite_p, 0);
rb_objc_define_method(rb_cFloat, "finite?", flo_is_finite_p, 0);
- rb_objc_define_method(rb_cFloat, "__immediate__?", flo_immediate_p, 0);
rb_install_nsnumber_primitives();
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090615/42187ad5/attachment-0001.html>
More information about the macruby-changes
mailing list