classpath
[Top][All Lists]
Advanced

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

blocking problem in StrictMath.remPiOver2


From: hultul
Subject: blocking problem in StrictMath.remPiOver2
Date: Wed, 22 Dec 2004 15:15:54 +0900

I've accidently found a blocking problem in StrictMath.sin(double a)
during mauve testing of classpath-0.12. (for example, blocked when
a=1e50)
The reason was that 'do~while' had caused infinite loop in
StrictMath.remPiOver2(double[], double[], int, int). The 'do-while'
goes to infinite loop when recompute=true.

>From the review of fdlibm library in classpath, It seems to be needed
a simple correction of StrictMath.remPiOver2 as follows.


ykleelinux:~/project/classpath$ diff -u /tmp/StrictMath.java
classpath/java/lang/StrictMath.java
--- /tmp/StrictMath.java        2004-12-22 15:04:23.000000000 +0900
+++ java/lang/StrictMath.java   2004-10-13 17:24:05.000000000 +0900
@@ -1620,8 +1620,6 @@
               }
           }

-        recompute = false;
-
         // Check if recomputation is needed.
         if (z == 0)
           {




reply via email to

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