[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ltp-cvs
Subject:    [Ltp-cvs] ltp/testcases/misc/math/float/trigo gentan.c,1.2,1.3
From:       robbiew () users ! sourceforge ! net
Date:       2004-01-16 15:44:45
Message-ID: E1AhW9N-0007yZ-00 () sc8-pr-cvs1 ! sourceforge ! net
[Download RAW message or body]

Update of /cvsroot/ltp/ltp/testcases/misc/math/float/trigo
In directory sc8-pr-cvs1:/tmp/cvs-serv30538/float/trigo

Modified Files:
	gentan.c 
Log Message:
Applied a patch from Mike Wolf:
===============================
 In looking at LTC bugzilla 5601 I found a problem in the test data generation code \
in LTP.  In testcases/misc/math/float/trigo/gentan.c there is a if statement in the \
data generation and the result generation code.  This results in the tables having \
uninitialised code at index 5000 which in turn caused the test float_trigo to fail on \
the tan function testing.  Steve Munroe said I should inform you of the problem, \
attached is the patch I use to get around the problem. \
===============================


Index: gentan.c
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/misc/math/float/trigo/gentan.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- gentan.c	28 Mar 2003 16:51:30 -0000	1.2
+++ gentan.c	16 Jan 2004 15:44:42 -0000	1.3
@@ -57,6 +57,8 @@
 	{
 		if ( (Inc*i) != (M_PIl/2) )
 			tabRtan[i] = tan (Inc * i);
+		else
+			tabRtan[i] = tan (0);
 	}
 
 	fp = open(F_name,O_RDWR|O_CREAT|O_TRUNC,0777);
@@ -95,6 +97,8 @@
 	{
 		if ( (Inc*i) != (M_PIl/2) )
 			tabDtan[i] = (Inc * i);
+                else
+			tabDtan[i] = 0;
 	}
 
 




-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Ltp-cvs mailing list
Ltp-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-cvs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic