This is the mail archive of the libstdc++@gcc.gnu.org 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]
Other format: [Raw text]

Re: float stuff again


> actually requires the lldiv_t type.  Does HPUX 11 claim to otherwise
> support C99?  If so, does it declare a prototype for something close
> to:

The original release of HPUX 11 predates C99.  The most recent system
that I have doesn't have the optional C compiler, so I don't know if
C99 support is claimed in the most recent distributions.  The HPUX 11i
headers don't have any reference to C99 in them.  On the otherhand,
it clearly has many of the fuctions specified in C99.

> lldiv_t lldiv(long long int numer, long long int denom);

> ``7.20.6.2  The div, ldiv, and lldiv functions

It has div and ldiv, but not lldiv.

> Any chance that you could teach/extend things so HPUX 11 gets
> _GLIBCPP_USE_C99 defined?  I would understand if this looks too
> convoluted.  As I said, this was a ramble not a fully baked idea.

Possibly, lldiv could be added to the library and this would make
HPUX 11 sufficiently capatible with C99 for the above purposes.
The generic lldiv in glibc is very simple.  I tend to think
that these functions shouldn't be the determing factor in whether
or not to define _GLIBCPP_USE_C99 as they are simply implemented
if not available.

I had extended your patch to use the _ISFINITE macro available
on HPUX 11 since this avoids the issues with respect to isfinite,
isinf, etc.  The test passes when run in 32-bit mode but it still
fails when using a 64-bit compiler.  The 64-bit stuff is a bit
on the bleeding edge since there are still numerous problems with
the tools there.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)


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