gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gm2] Problem in dtoa?


From: Michael Lambert
Subject: [Gm2] Problem in dtoa?
Date: Sun, 11 Jan 2009 21:16:49 -0500

I'm wondering if there is an issue with dtoa (at least on 32-bit machines). Below is the output of debugging with print statements in realconv.mod and the ISO module RealConv.mod.

The 'point = n' comes from the value returned in the call to dtoa within the LengthFixedReal procedure. The 'Length... = n' is from a dump of all the calls inside the realconv.mod test. It looks to me as though the first call should have point=2 and the second point=3.

Michael


$ ./realconv.x0
LengthFixedReal(12.3456789, 3) = point = +1
5
LengthFixedReal(123.456789, 3) = point = +2
6
LengthFixedReal(1234.56789, 3) = point = +4
8
LengthFixedReal(1234.56789, -3) = point = +4
6
point = +1/home/lambert/gnu/gcc-4.1.2/gcc/testsuite/gm2/isolib/run/ pass/realconv.mod:48:in Assert has caused assert failed





reply via email to

[Prev in Thread] Current Thread [Next in Thread]