[Top][All Lists]

[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.

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/

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

Maybe configure should test for this bug and define some properly named
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>

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

Paul Kienzle

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

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

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