Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-Id: Date: Wed, 02 Jun 2004 10:23:03 +0100 From: "Gary Polhill" To: Subject: Implementation of some ieeefp functions in Cygwin Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline X-MailScanner-MLURI: Found to be clean X-MailScanner-MLURI-SpamCheck: not spam (whitelisted), SpamAssassin (score=-4.9, required 5, BAYES_00 -4.90) Note-from-DJ: This may be spam Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id i529L8N5030185 If anyone is interested, I have hacked together an implementation of some of the functions in ieeefp.h, for Cygwin on an Intel Pentium platform, including: fpsetround, fpgetround, fpsetsticky, fpgetsticky, finite, fpclass. fpsetmask and fpgetmask are also implemented, but I haven't tested trapping SIGFPE -- however, setting the masks does cause termination when a floating point error occurs. I'm afraid I don't have the time to work out how to provide a patch, and I have only tested it on a version of Cygwin (my cygwin1.dll has file version 1001.1.0, Product Version 1.1.1, and BuildDate 2000-04-07 00:28:57) supplied with a version of Swarm (2.1.1, see wiki.swarm.org). The source code is released under the GNU GPL, and available for download at http://www.macaulay.ac.uk/fearlus/floating-point/download.html Gary Polhill -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/