This is the mail archive of the libstdc++@sources.redhat.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Numeric limits


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I was just looking at the numeric limits stuff, and noticed that
numeric_limits<>::infinity(), quiet_NaN() and signaling_NaN() are all set to
return zero for all the floating point types.

On Solaris there is a library (sunmath) that provides functions to obtain these
values, which can then be used in gen_num_limits.cc to provide them without
requiring this library.

Are there such functions available on other platforms (e.g. as part of glibc)?
Would you like the code I've written for gen_num_limits.cc which uses these on
Solaris?

Anthony

alink@anthonyw.cjb.net -- Questions relating to ALINK
anthony@anthonyw.cjb.net  -- Non-ALINK questions
http://anthonyw.cjb.net/ -- ALINK home page
PGP Fingerprint: 
0E2D D32A 8732 DC31 804C  D435 9BF0 F8FE 1C1B 9AD5
PGP Key at: http://i3.yimg.com/3/c7e5ee24/g/68fc2307.asc

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.1 for non-commercial use <http://www.pgp.com>
Comment: PGP Key at: http://i3.yimg.com/3/c7e5ee24/g/68fc2307.asc

iQA/AwUBOX/3kpvw+P4cG5rVEQLHIACfVZPqrTw1Bl1MbrZmaTdqp+RNkvMAoPc6
cQNv8ecOkV2gw6iXrDzMtOn4
=2TtR
-----END PGP SIGNATURE-----



__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]