help-octave
[Top][All Lists]
Advanced

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

Re: Fixed-Point toolbox for octave-forge


From: Paul Kienzle
Subject: Re: Fixed-Point toolbox for octave-forge
Date: Wed, 26 May 2004 19:39:18 -0400


On May 26, 2004, at 10:42 AM, David Bateman wrote:

According to Per Persson <address@hidden> (on 05/26/04):

On May 25, 2004, at 17:37, David Bateman wrote:

Dear All,

I've just committed a fixed-point toolbox for octave to octave-forge.

David,
this is great!

I found three problems when compiling on Mac OS X:

1) A bug in OS X's cmath that causes isnan() and isinf() to be
"undeclared" will need to be worked around in int/fixed.cc.

The following should work (goes right after #include <cmath>):
#if defined(__APPLE__) && defined(__MACH__)
extern "C" int isnan (double);
extern "C" int isinf (double);
#endif

Maybe configure should test for this bug and define some properly named
macro?
AC_TRY_COMPILE([#include <cmath>], [isnan(1.0);],
[AC_MSG_RESULT("Pass")], [AC_MSG_RESULT("Fail")])

Ok, for now I've commit your first fix...


I use:

        #include <octave/lo-ieee.h>
        lo_ieee_isnan()

 so I don't need #ifdef's in my code.

Paul Kienzle
address@hidden



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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