|
Boost : |
From: Paul A. Bristow (boost_at_[hidden])
Date: 2001-09-14 05:36:55
MSVC provides _isnan(), fpclassify, _isinf, but not the
underlying code.
So perhaps we just have to use macros to select?
But I would prefer some real code, at least for IEEE machines.
Paul
> -----Original Message-----
> From: Eric Ford [mailto:eford_at_[hidden]]
> Sent: Thursday, September 13, 2001 8:38 PM
> To: boost_at_[hidden]
> Subject: [boost] Re: Math Functions: Basic building blocks...
>
>
> > > As for nan, according to the GNU C library manual, ISO C99 provide
> > > fpclassify, isnan, isinf, etc.. What's the shortcoming of this
> > > method?
> >
> > Do you have access to the real code for this _ can only find
> > MACRO names, not the actual MACRO.
>
> it's in my my /usr/include/math.h. Unfortunately, the macros just are
> wrappers so that it calls the right internal functions depending on
> the argument type (by making use of sizeof's, obviously a template
> would be better for allowing for user defined types). The code for
> the internal functions is surely avaliable (just find a source tarball
> for a recent version of glibc (mine is glibc-devel-2.2.2-10)).
> Unfortunately, it's probably useless. I think the relevant question
> is how common is fpclassify isnan and isinf support in compilers such
> as MS's?
>
>
>
>
>
>
>
> Info: http://www.boost.org Unsubscribe:
> <mailto:boost-unsubscribe_at_[hidden]>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk