OSDN Git Service
(root)
/
splhack
/
AndroidRuby.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
ruby-1.9.1-rc1
[splhack/AndroidRuby.git]
/
lib
/
ruby-1.9.1-rc1
/
ext
/
bigdecimal
/
extconf.rb
1
require 'mkmf'
2
3
base_fig = 0
4
src = "(BASE * (BASE+1)) / BASE == (BASE+1)"
5
while try_static_assert(src, nil, "-DBASE=10#{'0'*base_fig}UL")
6
base_fig += 1
7
end
8
$defs << "-DBASE=1#{'0'*base_fig}UL" << "-DBASE_FIG=#{base_fig}"
9
10
create_makefile('bigdecimal')