diff options
author | Jakub Jelinek <jakub@redhat.com> | 2000-07-21 01:01:00 +0000 |
---|---|---|
committer | Benjamin Kosnik <bkoz@gcc.gnu.org> | 2000-07-21 01:01:00 +0000 |
commit | ba62473eba80f412d4da94ef82afa672c1d5f2c3 (patch) | |
tree | 3662d0e2d08da38c706006cfdb12c6c9cc79094c /libstdc++-v3/math/clog10l.c | |
parent | 538befca2c8bb81a347542366d7e99a0e7dcdff0 (diff) | |
download | gcc-ba62473eba80f412d4da94ef82afa672c1d5f2c3.zip gcc-ba62473eba80f412d4da94ef82afa672c1d5f2c3.tar.gz gcc-ba62473eba80f412d4da94ef82afa672c1d5f2c3.tar.bz2 |
atomicity.h (__exchange_and_add): Use extended word instructions to match 64bit _Atomic_word.
2000-07-20 Jakub Jelinek <jakub@redhat.com>
* config/cpu/sparc/sparc64/bits/atomicity.h (__exchange_and_add):
Use extended word instructions to match 64bit _Atomic_word.
(__atomic_add): Likewise.
* math/clog10l.c (clog10l): Use M_PIl if defined.
* math/c_logl.c (c_logl): Likewise.
* math/signbitl.c (__signbitl): Adapt for IEEE quad long doubles.
* math/mathconf.h (ieee_quad_double_shape_type): New type.
(GET_LDOUBLE_MSW64): New define.
From-SVN: r35166
Diffstat (limited to 'libstdc++-v3/math/clog10l.c')
-rw-r--r-- | libstdc++-v3/math/clog10l.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libstdc++-v3/math/clog10l.c b/libstdc++-v3/math/clog10l.c index e183862..9cec8f8 100644 --- a/libstdc++-v3/math/clog10l.c +++ b/libstdc++-v3/math/clog10l.c @@ -27,8 +27,14 @@ invalidate any other reasons why the executable file might be covered by the GNU General Public License. */ +#ifndef _GNU_SOURCE +#define _GNU_SOURCE +#endif #include <math.h> #include "mathconf.h" +#ifndef M_PIl +#define M_PIl M_PI +#endif /* Thanks to SGI we have to trick here. At least Irix 6.2 provides hypotl, but it has a wrong prototype. Grrr. */ @@ -43,7 +49,7 @@ clog10l (__complex__ long double x) if (x == 0.0) { /* Real and imaginary part are 0.0. */ - __imag__ result = signbit (__real__ x) ? M_PI : 0.0; + __imag__ result = signbit (__real__ x) ? M_PIl : 0.0; __imag__ result = copysignl (__imag__ result, __imag__ x); /* Yes, the following line raises an exception. */ __real__ result = -1.0 / fabsl (__real__ x); |