C++ <limits> header file
peeter_joot@VNET.IBM.COM
peeter_joot@VNET.IBM.COM
Fri Mar 5 23:50:00 GMT 1999
> > Too bad you didn't notice they're already implemented in libstdc++-v3
> > (sourceware.cygnus.com) :-(
>
> Not really. The version there is lifted from SGI STL, and is
> MIPS-specific. We should be generating it from enquire.
I have enquire modifications that I posted about a year ago for this.
I had posted this to the egcs list get some feedback because I didn't know
what to do with the signalling non-signalling nan stuff -- I basically
guessed at that part, but I didn't care too much at the time since I wasn't
using that part of numeric_limits<>.
I have since found out what these are (the intel assembly documention explains
these nicely), but I haven't touched this <limits> stuff since then, and these
problems still have to be addressed.
My approach was to have an input file and have enquire generate a sed script
that could be used to create a final <limits> header. This way I didn't have
to embed the whole text or needlessly complicate enquire.
My enquire patch and the <limits> input file are still at:
http://www.cygnus.com/ml/egcs/1998-Feb/0938.html
It seems that nobody noticed or was interested at the time -- with either
some feedback or some help, this could be polished up for inclusion without
too much work.
Peeter
--
Peeter Joot peeterj@ca.ibm.com
IBM DB2 Operating System Services
More information about the Gcc
mailing list