diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-11-09 01:57:49 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-11-09 01:57:49 +0000 |
commit | c383fbf93f691f443eb16761351a6943bc29d3f9 (patch) | |
tree | 538fe8e31a85eb85a67ea1d1127dee2b9dc74fba /ChangeLog | |
parent | b3c7867df7cd186e73021f0ed9d17680999f190f (diff) | |
download | ruby-c383fbf93f691f443eb16761351a6943bc29d3f9.tar.gz |
* util.c (ruby_strtod): this code uses FPU's rounding system.
But x86's FPU calculates double precision floating-point
numbers in 80bit precision, so it fails to round the value.
So ensure the value is assigned a variable. [ruby-dev:42551]
see also [ruby-math:00802]
http://www.shudo.net/java-grandprix99/strictfp/
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -1,3 +1,12 @@ +Tue Nov 9 10:44:19 2010 NARUSE, Yui <naruse@ruby-lang.org> + + * util.c (ruby_strtod): this code uses FPU's rounding system. + But x86's FPU calculates double precision floating-point + numbers in 80bit precision, so it fails to round the value. + So ensure the value is assigned a variable. [ruby-dev:42551] + see also [ruby-math:00802] + http://www.shudo.net/java-grandprix99/strictfp/ + Tue Nov 9 07:30:15 2010 Nobuyoshi Nakada <nobu@ruby-lang.org> * error.c (rb_syserr_new): new function to make SystemCallError |