Thread overview | ||||||
---|---|---|---|---|---|---|
|
August 20, 2008 [Issue 2297] New: on LinuxAmd64 some creal operations bring into scope a faulty version of powl | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=2297 Summary: on LinuxAmd64 some creal operations bring into scope a faulty version of powl Product: DGCC aka GDC Version: unspecified Platform: Macintosh OS/Version: Linux Status: NEW Keywords: wrong-code Severity: normal Priority: P2 Component: glue layer AssignedTo: dvdfrdmn@users.sf.net ReportedBy: fawzi@gmx.ch {{{ module m; version(tango) import tango.stdc.stdio; else import std.c.stdio; extern(C){ real powl(real x,real y); } creal conj(creal z) { return z.re - z.im*1i; } void main() { // with this assert on LinuxAmd64 the program writes // tst 0xb.9db22d0e560418ap-5 0xf.1048380af74f336p-39 0xb.9db22d0dfbd0e1dp-5 // instead of // tst 0xb.9db22d0e560418ap-5 0xf.1048380af74f336p-39 0xb.9db22d0e560418ap-5 assert(conj(7 + 3i) == 7-3i); real x = powl(1.0L-0.637L, 24); printf("tst %La %La %La\n", 1.0L-0.637L, x,powl(x, 1.0L/24.0L)); } }}} -- |
October 11, 2011 [Issue 2297] on LinuxAmd64 some creal operations bring into scope a faulty version of powl | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2297 --- Comment #1 from Manuel A. Fernandez Montecelo <manuel.montezelo@gmail.com> 2011-10-11 08:16:10 PDT --- Created an attachment (id=1037) Fawzi Mohamed's case as attachment Added Fawzi Mohamed's case as attachment -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
October 11, 2011 [Issue 2297] on LinuxAmd64 some creal operations bring into scope a faulty version of powl | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2297 Manuel A. Fernandez Montecelo <manuel.montezelo@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |manuel.montezelo@gmail.com --- Comment #2 from Manuel A. Fernandez Montecelo <manuel.montezelo@gmail.com> 2011-10-11 08:19:12 PDT --- I don't know if Fawzi Mohamed's solution is the correct one, but for me it produces what's supposed to be the correct result: -------------------------------------------------------------------------------- $ gdc-4.6 issue-2297.d -o issue-2297 && ./issue-2297 tst 0xb.9db22d0e560418ap-5 0xf.1048380af74f336p-39 0xb.9db22d0e560418ap-5 $ dpkg -l gdc-4.6 | grep ii ii gdc-4.6 0.29.1-4.6.1-14 GNU D compiler, based on the GCC backend $ uname -a Linux mafm-laptop 3.0.0-2-amd64 #1 SMP Fri Oct 7 20:48:45 UTC 2011 x86_64 GNU/Linux -------------------------------------------------------------------------------- -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
July 06, 2012 [Issue 2297] on LinuxAmd64 some creal operations bring into scope a faulty version of powl | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2297 Iain Buclaw <ibuclaw@ubuntu.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Iain Buclaw <ibuclaw@ubuntu.com> 2012-07-06 05:14:39 PDT --- Marking as fixed as can no longer reproduce. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation