From: Martin Duerst Date: 2008-12-10T18:34:26+09:00 Subject: [ruby-core:20444] Re: Leave my open classes alone (was Behavior:autoload calls rb_require() directly) At 23:39 08/12/09, SASADA Koichi wrote: >Ken Bloom wrote:: >> Even so, where would you get space for the tag from? Ruby's documentation >> says that a "Float objects represent real numbers using the native >> architecture窶� double-precision floating point representation," and a >> double is 64 bits on most 32- and 64-bit operating systems. > >Good point. > >A method is written in my paper, but it is written in Japanese. Do you have a pointer? > >This is ruby.h for embed double. >http://www.atdot.net/sp/view/e76mbk I only get a page with some data and links, as follows: Paste time: Wed Dec 10 11:00:08 +0900 2008 Paste IP addr: 218.45.21.194 Your paste URL is http://www.atdot.net/sp/view/e76mbk Read only URL is http://www.atdot.net/sp/readonly/e76mbk Raw URL is http://www.atdot.net/sp/raw/e76mbk make new page delete this page stick this page Regards, Martin. >rb_float_new(), NUM2DOUBLE() and RFLOAT_VALUE() have a trick. It >generates 1 bit for Float. However Fixnum consumes 3 bit tags. > >-- >// SASADA Koichi at atdot dot net #-#-# Martin J. Du"rst, Assoc. Professor, Aoyama Gakuin University #-#-# http://www.sw.it.aoyama.ac.jp mailto:duerst@it.aoyama.ac.jp