Skip to content

Correctly computing loop iterations in BigDecimal#sqrt - #280

Merged
mrkn merged 1 commit into
ruby:masterfrom
z2-2z:master
Dec 19, 2023
Merged

mrkn merged 1 commit into
ruby:masterfrom
z2-2z:master

Conversation

@z2-2z

@z2-2z z2-2z commented Dec 14, 2023

Copy link
Copy Markdown
Contributor

No description provided.

@mrkn
mrkn merged commit 5843c89 into ruby:master Dec 19, 2023
@mrkn

mrkn commented Dec 19, 2023

Copy link
Copy Markdown
Member

@z2-2z Thank you very much!

hsbt pushed a commit to hsbt/ruby that referenced this pull request Dec 25, 2023
hsbt pushed a commit to hsbt/ruby that referenced this pull request Dec 25, 2023
hsbt pushed a commit to hsbt/ruby that referenced this pull request Dec 25, 2023
@hsbt

hsbt commented Dec 25, 2023 •

Copy link
Copy Markdown
Member

This change break i686 environment https://github.com/ruby/ruby/actions/runs/7321152433/job/19941861006

  1)
  BigDecimal#sqrt returns square root of 0.9E-99999 with desired precision FAILED
  Expected "0.29999999999999999999993e-49999" =~ /\A0\.3E-49999\z/i
  to be truthy but was nil
  /home/runner/work/ruby/ruby/src/spec/ruby/library/bigdecimal/sqrt_spec.rb:40:in `block (2 levels) in <top (required)>'
  /home/runner/work/ruby/ruby/src/spec/ruby/library/bigdecimal/sqrt_spec.rb:5:in `<top (required)>'

@mrkn

mrkn commented Dec 25, 2023

Copy link
Copy Markdown
Member

@hsbt Did you compile the ruby you used with -msse2 -mfpmath=sse?

@mrkn

mrkn commented Dec 25, 2023

Copy link
Copy Markdown
Member

I'm interested in what is the cause of that failure, but I have no desire to continue full support for the i686 environment.

@hsbt

hsbt commented Jan 18, 2024

Copy link
Copy Markdown
Member

It's okay to drop support i686 platform because bigdecimal is bundled gems at Ruby 3.4. Now, support platform of bigdecimal gem is totally maintainer's convenience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants