mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
ad8fc7d918
Cover zero operands, power-of-2 fast path, negative operands, balanced multi-limb pairs with a shared Fibonacci factor, highly unbalanced pairs (to exercise the Euclidean fallback), and Fibonacci neighbors (always coprime). Declare a test dependency on mruby-numeric-ext since Integer#gcd is defined there. Co-authored-by: Claude <noreply@anthropic.com>
13 lines
475 B
Ruby
13 lines
475 B
Ruby
MRuby::Gem::Specification.new('mruby-bigint') do |spec|
|
|
spec.license = 'MIT'
|
|
spec.author = 'mruby developers'
|
|
spec.summary = 'Integer class extension to multiple-precision'
|
|
spec.build.defines << "MRB_USE_BIGINT"
|
|
|
|
spec.add_test_dependency('mruby-numeric-ext', :core => 'mruby-numeric-ext')
|
|
|
|
spec.build.libmruby_core_objs << Dir.glob(File.join(__dir__, "core/**/*.c")).map { |fn|
|
|
objfile(fn.relative_path_from(__dir__).pathmap("#{spec.build_dir}/%X"))
|
|
}
|
|
end
|