Hi Przemek,
I've found these in float.h: (no long double finite, but there's
an isnan, plus fpclass() with some useful stuff)

---
#ifndef _SIGN_DEFINED
_CRTIMP __checkReturn double __cdecl _copysign (__in double _Number, __in
double _Sign);
_CRTIMP __checkReturn double __cdecl _chgsign (__in double _X);
#define _SIGN_DEFINED
#endif
_CRTIMP __checkReturn double __cdecl _scalb(__in double _X, __in long _Y);
_CRTIMP __checkReturn double __cdecl _logb(__in double _X);
_CRTIMP __checkReturn double __cdecl _nextafter(__in double _X, __in double
_Y);
_CRTIMP __checkReturn int    __cdecl _finite(__in double _X);
_CRTIMP __checkReturn int    __cdecl _isnan(__in double _X);
_CRTIMP __checkReturn int    __cdecl _fpclass(__in double _X);

#ifdef _M_AMD64
_CRTIMP __checkReturn float __cdecl _scalbf(__in float _X, __in long _Y);
#endif

#define _FPCLASS_SNAN   0x0001  /* signaling NaN */
#define _FPCLASS_QNAN   0x0002  /* quiet NaN */
#define _FPCLASS_NINF   0x0004  /* negative infinity */
#define _FPCLASS_NN     0x0008  /* negative normal */
#define _FPCLASS_ND     0x0010  /* negative denormal */
#define _FPCLASS_NZ     0x0020  /* -0 */
#define _FPCLASS_PZ     0x0040  /* +0 */
#define _FPCLASS_PD     0x0080  /* positive denormal */
#define _FPCLASS_PN     0x0100  /* positive normal */
#define _FPCLASS_PINF   0x0200  /* positive infinity */
---

Brgds,
Viktor

On Wed, Jan 28, 2009 at 5:39 PM, Przemyslaw Czerpak <dru...@acn.waw.pl>wrote:

> On Wed, 28 Jan 2009, Szak�ts Viktor wrote:
>
> Hi,
>
> > source\common\hbprintf.c(1035) : warning C4244: 'function' : conversion
> from
> > 'long double' to 'double', possible loss of data
> > I've checked line 1035, but I'd rather not touch it.
>
> Please check if MSVC has _finite() function which can accept
> 'long double' as parameter, f.e.: _finitel()
> I'll enable using _finitel() in MSVC builds in next commit but
> please confirm if it works.
>
> best regards,
> Przemek
> _______________________________________________
> Harbour mailing list
> Harbour@harbour-project.org
> http://lists.harbour-project.org/mailman/listinfo/harbour
>
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to