+2002-01-01 Roger Sayle <roger@eyesopen.com>
+
+ * libmath/stubs.c (sinf,cosf): Implement stubs to enable the
+ equivalent ___builtin__ versions.
+
+ * include/c_shadow/bits/std_cmath.h: All __builtin math functions
+ are available in libstdc++ as the necessary stub implementations
+ are provided by libmath/stubs.c.
+
2002-01-01 Jason Thorpe <thorpej@wasabisystems.com>
* configure.in: Add support for NetBSD cross compiles.
* include/backward/algo.h: Include <ext/algorithm>,
tweak using declarations.
-
+
2001-12-29 Richard Henderson <rth@redhat.com>
* config/os/hpux/bits/os_defines.h: Don't define __glibcpp_long_bits.
(back_insert_iterator): Uglify member container to _M_container.
(front_insert_iterator): Same.
(insert_iterator): Same.
-
+
2001-12-25 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
* include/bits/std_limits.h (__glibcpp_xxx_is_modulo): New
for strtoll and strtoull.
2001-12-21 Jeffrey A Law <law@redhat.com>
-
+
* config/os/hpux/bits/os_defines.h: Include <sys/_inttypes.h.
Define strtoll and strtoull. Provide prototypes for
__strtoll and __strtoull. Define _GLIBCPP_USE_LONG_LONG
2001-12-19 David Billinghurst <David.Billinghurst@riotinto.com>
libstdc++-v3/5148
- * testsuite/lib/libstdc++-v3-dg.exp: Append .exe to
+ * testsuite/lib/libstdc++-v3-dg.exp: Append .exe to
executable filenames
2001-12-18 Benjamin Kosnik <bkoz@redhat.com>
enabling gnu model.
* aclocal.m4: Rebuild.
* configure: Rebuild.
-
+
2001-12-18 Paolo Carlini <pcarlini@unitus.it>
Nathan Myers <ncm@cantrip.org>
-
+
* include/bits/basic_string.h (assign(__str, __pos, __n)):
Call assign(__s, __n).
(assign(__s, __n)): Terminate the string with _S_terminal.
on linux by default.
* aclocal.m4: Regenerate.
* configure: Regenerate.
-
+
2001-12-14 Benjamin Kosnik <bkoz@redhat.com>
Clean up initialization and simplfy caching of underlying "C"
* config/os/gnu-linux/bits/ctype_inline.h: Tweak.
* config/os/gnu-linux/bits/ctype_noninline.h: Adjust initializations.
* include/bits/locale_facets.h (ctype<char>::_M_c_locale_ctype): Add.
- Adjust ctors, dtors.
+ Adjust ctors, dtors.
(ctype<char>::_M_toupper): Remove const&.
(ctype<char>::_M_tolower): Remove const&.
- (ctype<char>::_M_ctable): Remove const&.
-
+ (ctype<char>::_M_ctable): Remove const&.
+
* include/bits/locale_facets.h (collate): Clean up initialization
of _M_c_locale_collate in ctors and dtors.
* config/locale/collate_members_gnu.cc: Always use extended
* include/bits/localefwd.h: Clean. Move dtor definitions to
* src/locale.cc: Here.
* testsuite/22_locale/facet.cc: Fix spelling.
-
+
Named locale support for ctype<wchar_t>.
* acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Add variable
ctype_members_* bits.
// -*- C++ -*- header wrapper.
-// Copyright (C) 1997-1999, 2000 Free Software Foundation, Inc.
+// Copyright (C) 1997-1999, 2000, 2002 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
_CPP_ceil_capture(float __x) { return ceil(static_cast<double>(__x)); }
#endif
-#if _GLIBCPP_HAVE___BUILTIN_COSF
inline float
_CPP_cos_capture(float __x) { return __builtin_cosf(__x); }
-#elif _GLIBCPP_HAVE_COSF
- inline float
- _CPP_cos_capture(float __x) { return cosf(__x); }
-#else
- inline float
- _CPP_cos_capture(float __x) { return cos(static_cast<double>(__x)); }
-#endif
#if _GLIBCPP_HAVE_COSHF
inline float
_CPP_exp_capture(float __x) { return exp(static_cast<double>(__x)); }
#endif
-#if _GLIBCPP_HAVE___BUILTIN_FABSF
inline float
_CPP_fabs_capture(float __x) { return __builtin_fabsf(__x); }
-#elif _GLIBCPP_HAVE_FABSF
- inline float
- _CPP_fabs_capture(float __x) { return fabsf(__x); }
-#else
- inline float
- _CPP_fabs_capture(float __x) { return fabs(static_cast<double>(__x)); }
-#endif
#if _GLIBCPP_HAVE_FLOORF
inline float
float pow(float, int);
-#if _GLIBCPP_HAVE___BUILTIN_SINF
inline float
_CPP_sin_capture(float __x) { return __builtin_sinf(__x); }
-#elif _GLIBCPP_HAVE_SINF
- inline float
- _CPP_sin_capture(float __x) { return sinf(__x); }
-#else
- inline float
- _CPP_sin_capture(float __x) { return sin(static_cast<double>(__x)); }
-#endif
#if _GLIBCPP_HAVE_SINHF
inline float
_CPP_sinh_capture(float __x) { return sinh(static_cast<double>(__x)); }
#endif
-#if _GLIBCPP_HAVE___BUILTIN_SQRTF
inline float
_CPP_sqrt_capture(float __x) { return __builtin_sqrtf(__x); }
-#elif _GLIBCPP_HAVE_SQRTF
- inline float
- _CPP_sqrt_capture(float __x) { return sqrtf(__x); }
-#else
- inline float
- _CPP_sqrt_capture(float __x) { return sqrt(static_cast<double>(__x)); }
-#endif
#if _GLIBCPP_HAVE_TANF
inline float
inline double
_CPP_ceil_capture(double __x) { return ceil(__x); }
-#if _GLIBCPP_HAVE___BUILTIN_COS
inline double
_CPP_cos_capture(double __x) { return __builtin_cos(__x); }
-#else
- inline double
- _CPP_cos_capture(double __x) { return cos(__x); }
-#endif
inline double
_CPP_cosh_capture(double __x) { return cosh(__x); }
inline double
_CPP_exp_capture(double __x) { return exp(__x); }
-#if _GLIBCPP_HAVE___BUILTIN_FABS
inline double
_CPP_fabs_capture(double __x) { return __builtin_fabs(__x); }
-#else
- inline double
- _CPP_fabs_capture(double __x) { return fabs(__x); }
-#endif
inline double
_CPP_floor_capture(double __x) { return floor(__x); }
inline double
_CPP_pow_capture(double __x, double __y) { return pow(__x, __y); }
-#if _GLIBCPP_HAVE___BUILTIN_SIN
inline double
_CPP_sin_capture(double __x) { return __builtin_sin(__x); }
-#else
- inline double
- _CPP_sin_capture(double __x) { return sin(__x); }
-#endif
inline double
_CPP_sinh_capture(double __x) { return sinh(__x); }
-#if _GLIBCPP_HAVE___BUILTIN_SQRT
inline double
_CPP_sqrt_capture(double __x) { return __builtin_sqrt(__x); }
-#else
- inline double
- _CPP_sqrt_capture(double __x) { return sqrt(__x); }
-#endif
inline double
_CPP_tan_capture(double __x) { return tan(__x); }
_CPP_ceil_capture(long double __x) { return ceil(static_cast<double>(__x)); }
#endif
-#if _GLIBCPP_HAVE___BUILTIN_COSL
inline long double
_CPP_cos_capture(long double __x) { return __builtin_cosl(__x); }
-#elif _GLIBCPP_HAVE_COSL
- inline long double
- _CPP_cos_capture(long double __x) { return cosl(__x); }
-#else
- inline long double
- _CPP_cos_capture(long double __x) { return cos(static_cast<double>(__x)); }
-#endif
#if _GLIBCPP_HAVE_COSHL
inline long double
_CPP_exp_capture(long double __x) { return exp(static_cast<double>(__x)); }
#endif
-#if _GLIBCPP_HAVE___BUILTIN_FABSL
inline long double
_CPP_fabs_capture(long double __x) { return __builtin_fabsl(__x); }
-#elif _GLIBCPP_HAVE_FABSL
- inline long double
- _CPP_fabs_capture(long double __x) { return fabsl(__x); }
-#else
- inline long double
- _CPP_fabs_capture(long double __x) { return fabs(static_cast<double>(__x)); }
-#endif
#if _GLIBCPP_HAVE_FLOORL
inline long double
{ return pow(static_cast<double>(__x), static_cast<double>(__y)); }
#endif
-#if _GLIBCPP_HAVE___BUILTIN_SINL
inline long double
_CPP_sin_capture(long double __x) { return __builtin_sinl(__x); }
-#elif _GLIBCPP_HAVE_SINL
- inline long double
- _CPP_sin_capture(long double __x) { return sinl(__x); }
-#else
- inline long double
- _CPP_sin_capture(long double __x) { return sin(static_cast<double>(__x)); }
-#endif
#if _GLIBCPP_HAVE_SINHL
inline long double
_CPP_sinh_capture(long double __x) { return sinh(static_cast<double>(__x)); }
#endif
-#if _GLIBCPP_HAVE___BUILTIN_SQRTL
inline long double
_CPP_sqrt_capture(long double __x) { return __builtin_sqrtl(__x); }
-#elif _GLIBCPP_HAVE_SQRTL
- inline long double
- _CPP_sqrt_capture(long double __x) { return sqrtl(__x); }
-#else
- inline long double
- _CPP_sqrt_capture(long double __x) { return sqrt(static_cast<double>(__x)); }
-#endif
#if _GLIBCPP_HAVE_TANL
inline long double