diff options
author | mrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-08-10 06:25:27 +0000 |
---|---|---|
committer | mrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-08-10 06:25:27 +0000 |
commit | 7694956ef757c5dabcf397bc85be44b75ddd07bb (patch) | |
tree | 542b3e26e911f6a6b15dea6b2ef1055bc60ebc03 /ext/bigdecimal/extconf.rb | |
parent | 678af70ce8230ea8b88fd2ca2b26fe68b5c4a887 (diff) | |
download | ruby-7694956ef757c5dabcf397bc85be44b75ddd07bb.tar.gz |
* ext/bigdecimal/bigdecimal.c, ext/bigdecimal/bigdecimal.h, ext/bigdecimal/extconf.rb: BASE and BASE_FIG are defined based on the size of BDIGIT and renamed.
* ext/bigdecimal/bigdecimal.c, ext/bigdecimal/bigdecimal.h: use BDIGIT for Real#frac.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/bigdecimal/extconf.rb')
-rw-r--r-- | ext/bigdecimal/extconf.rb | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/ext/bigdecimal/extconf.rb b/ext/bigdecimal/extconf.rb index 0c8b98e4a3..92f3b00d6c 100644 --- a/ext/bigdecimal/extconf.rb +++ b/ext/bigdecimal/extconf.rb @@ -1,10 +1,3 @@ require 'mkmf' -base_fig = 0 -src = "(BASE * (BASE+1)) / BASE == (BASE+1)" -while try_static_assert(src, nil, "-DBASE=10#{'0'*base_fig}UL") - base_fig += 1 -end -$defs << "-DBASE=1#{'0'*base_fig}UL" << "-DBASE_FIG=#{base_fig}" - create_makefile('bigdecimal') |