Update.
	[BZ #1950]
	* posix/regex_internal.c (re_string_reconstruct): Adjust for
	build_wcs_upper_buffer change.
	(build_wcs_upper_buffer): Change return type.

	[BZ #2153]
	* math/s_cacosh.c (__cacosh): Do not return a negative
	value. Patch by Wes Loewer <wjltemp-temp01@yahoo.com>.
	* math/s_cacoshl.c (__cacoshl): Likewise.
	* math/s_cacoshf.c (__cacoshf): Likewise.
	* math/libm-test.inc (cacosh_test): Adjust for change.

	* sysdeps/alpha/fpu/libm-test-ulps: Adopt for cacosh test change.
	* sysdeps/hppa/fpu/libm-test-ulps: Likewise.
	* sysdeps/i386/fpu/libm-test-ulps: Likewise.
	* sysdeps/ia64/fpu/libm-test-ulps: Likewise.
	* sysdeps/m68k/fpu/libm-test-ulps: Likewise.
	* sysdeps/mips/fpu/libm-test-ulps: Likewise.
	* sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
	* sysdeps/s390/fpu/libm-test-ulps: Likewise.
	* sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
	* sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
	* sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
	* sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
This commit is contained in:
Andreas Jaeger 2006-01-15 17:59:52 +00:00
parent 3a12d5258a
commit 4f7e7f8e00
18 changed files with 66 additions and 32 deletions

View file

@ -1,5 +1,30 @@
2006-01-15 Andreas Jaeger <aj@suse.de> 2006-01-15 Andreas Jaeger <aj@suse.de>
[BZ #1950]
* posix/regex_internal.c (re_string_reconstruct): Adjust for
build_wcs_upper_buffer change.
(build_wcs_upper_buffer): Change return type.
[BZ #2153]
* math/s_cacosh.c (__cacosh): Do not return a negative
value. Patch by Wes Loewer <wjltemp-temp01@yahoo.com>.
* math/s_cacoshl.c (__cacoshl): Likewise.
* math/s_cacoshf.c (__cacoshf): Likewise.
* math/libm-test.inc (cacosh_test): Adjust for change.
* sysdeps/alpha/fpu/libm-test-ulps: Adopt for cacosh test change.
* sysdeps/hppa/fpu/libm-test-ulps: Likewise.
* sysdeps/i386/fpu/libm-test-ulps: Likewise.
* sysdeps/ia64/fpu/libm-test-ulps: Likewise.
* sysdeps/m68k/fpu/libm-test-ulps: Likewise.
* sysdeps/mips/fpu/libm-test-ulps: Likewise.
* sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
* sysdeps/s390/fpu/libm-test-ulps: Likewise.
* sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
* sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
* sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
* sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
[BZ #2079] [BZ #2079]
* libio/fputwc_u.c (fputwc_unlocked): Fix return value. * libio/fputwc_u.c (fputwc_unlocked): Fix return value.
* libio/getwc_u.c (__getwc_unlocked): Likewise. * libio/getwc_u.c (__getwc_unlocked): Likewise.

View file

@ -1,4 +1,4 @@
/* Copyright (C) 1997-2002, 2003, 2004, 2005 Free Software Foundation, Inc. /* Copyright (C) 1997-2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
Contributed by Andreas Jaeger <aj@suse.de>, 1997. Contributed by Andreas Jaeger <aj@suse.de>, 1997.
@ -1116,7 +1116,7 @@ cacosh_test (void)
TEST_c_c (cacosh, nan_value, nan_value, nan_value, nan_value); TEST_c_c (cacosh, nan_value, nan_value, nan_value, nan_value);
TEST_c_c (cacosh, 0.75L, 1.25L, 1.13239363160530819522266333696834467L, 1.11752014915610270578240049553777969L); TEST_c_c (cacosh, 0.75L, 1.25L, 1.13239363160530819522266333696834467L, 1.11752014915610270578240049553777969L);
TEST_c_c (cacosh, -2, -3, -1.9833870299165354323470769028940395L, 2.1414491111159960199416055713254211L); TEST_c_c (cacosh, -2, -3, 1.9833870299165354323470769028940395L, -2.1414491111159960199416055713254211L);
END (cacosh, complex); END (cacosh, complex);
} }

View file

@ -1,5 +1,5 @@
/* Return arc hyperbole cosine for double value. /* Return arc hyperbole cosine for double value.
Copyright (C) 1997 Free Software Foundation, Inc. Copyright (C) 1997, 2006 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
@ -73,6 +73,9 @@ __cacosh (__complex__ double x)
y = __csqrt (y); y = __csqrt (y);
if (__real__ x < 0.0)
y = -y;
__real__ y += __real__ x; __real__ y += __real__ x;
__imag__ y += __imag__ x; __imag__ y += __imag__ x;

View file

@ -1,5 +1,5 @@
/* Return arc hyperbole cosine for float value. /* Return arc hyperbole cosine for float value.
Copyright (C) 1997 Free Software Foundation, Inc. Copyright (C) 1997, 2006 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
@ -75,6 +75,9 @@ __cacoshf (__complex__ float x)
y = __csqrtf (y); y = __csqrtf (y);
if (__real__ x < 0.0)
y = -y;
__real__ y += __real__ x; __real__ y += __real__ x;
__imag__ y += __imag__ x; __imag__ y += __imag__ x;

View file

@ -1,5 +1,5 @@
/* Return arc hyperbole cosine for long double value. /* Return arc hyperbole cosine for long double value.
Copyright (C) 1997, 1998 Free Software Foundation, Inc. Copyright (C) 1997, 1998, 2006 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
@ -73,6 +73,9 @@ __cacoshl (__complex__ long double x)
y = __csqrtl (y); y = __csqrtl (y);
if (__real__ x < 0.0)
y = -y;
__real__ y += __real__ x; __real__ y += __real__ x;
__imag__ y += __imag__ x; __imag__ y += __imag__ x;

View file

@ -1,5 +1,5 @@
/* Extended regular expression matching and search library. /* Extended regular expression matching and search library.
Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc. Copyright (C) 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>. Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
@ -259,7 +259,7 @@ build_wcs_buffer (re_string_t *pstr)
/* Build wide character buffer PSTR->WCS like build_wcs_buffer, /* Build wide character buffer PSTR->WCS like build_wcs_buffer,
but for REG_ICASE. */ but for REG_ICASE. */
static int static reg_errcode_t
internal_function internal_function
build_wcs_upper_buffer (re_string_t *pstr) build_wcs_upper_buffer (re_string_t *pstr)
{ {
@ -721,7 +721,7 @@ re_string_reconstruct (re_string_t *pstr, int idx, int eflags)
{ {
if (pstr->icase) if (pstr->icase)
{ {
int ret = build_wcs_upper_buffer (pstr); reg_errcode_t ret = build_wcs_upper_buffer (pstr);
if (BE (ret != REG_NOERROR, 0)) if (BE (ret != REG_NOERROR, 0))
return ret; return ret;
} }

View file

@ -20,12 +20,12 @@ float: 1
ifloat: 1 ifloat: 1
# cacosh # cacosh
Test "Real part of: cacosh (-2 - 3 i) == -1.9833870299165354323470769028940395 + 2.1414491111159960199416055713254211 i": Test "Real part of: cacosh (-2 - 3 i) == 1.9833870299165354323470769028940395 - 2.1414491111159960199416055713254211 i":
double: 1 double: 1
float: 7 float: 7
idouble: 1 idouble: 1
ifloat: 7 ifloat: 7
Test "Imaginary part of: cacosh (-2 - 3 i) == -1.9833870299165354323470769028940395 + 2.1414491111159960199416055713254211 i": Test "Imaginary part of: cacosh (-2 - 3 i) == 1.9833870299165354323470769028940395 - 2.1414491111159960199416055713254211 i":
double: 1 double: 1
float: 3 float: 3
idouble: 1 idouble: 1

View file

@ -17,12 +17,12 @@ float: 1
ifloat: 1 ifloat: 1
# cacosh # cacosh
Test "Real part of: cacosh (-2 - 3 i) == -1.9833870299165354323470769028940395 + 2.1414491111159960199416055713254211 i": Test "Real part of: cacosh (-2 - 3 i) == 1.9833870299165354323470769028940395 - 2.1414491111159960199416055713254211 i":
double: 1 double: 1
float: 7 float: 7
idouble: 1 idouble: 1
ifloat: 7 ifloat: 7
Test "Imaginary part of: cacosh (-2 - 3 i) == -1.9833870299165354323470769028940395 + 2.1414491111159960199416055713254211 i": Test "Imaginary part of: cacosh (-2 - 3 i) == 1.9833870299165354323470769028940395 - 2.1414491111159960199416055713254211 i":
double: 1 double: 1
float: 3 float: 3
idouble: 1 idouble: 1

View file

@ -35,14 +35,14 @@ ildouble: 2
ldouble: 2 ldouble: 2
# cacosh # cacosh
Test "Real part of: cacosh (-2 - 3 i) == -1.9833870299165354323470769028940395 + 2.1414491111159960199416055713254211 i": Test "Real part of: cacosh (-2 - 3 i) == 1.9833870299165354323470769028940395 - 2.1414491111159960199416055713254211 i":
double: 1 double: 1
float: 9 float: 9
idouble: 1 idouble: 1
ifloat: 9 ifloat: 9
ildouble: 6 ildouble: 6
ldouble: 6 ldouble: 6
Test "Imaginary part of: cacosh (-2 - 3 i) == -1.9833870299165354323470769028940395 + 2.1414491111159960199416055713254211 i": Test "Imaginary part of: cacosh (-2 - 3 i) == 1.9833870299165354323470769028940395 - 2.1414491111159960199416055713254211 i":
double: 1 double: 1
float: 4 float: 4
idouble: 1 idouble: 1

View file

@ -8,14 +8,14 @@ ildouble: 2
ldouble: 2 ldouble: 2
# cacosh # cacosh
Test "Real part of: cacosh (-2 - 3 i) == -1.9833870299165354323470769028940395 + 2.1414491111159960199416055713254211 i": Test "Real part of: cacosh (-2 - 3 i) == 1.9833870299165354323470769028940395 - 2.1414491111159960199416055713254211 i":
double: 1 double: 1
float: 7 float: 7
idouble: 1 idouble: 1
ifloat: 7 ifloat: 7
ildouble: 7 ildouble: 7
ldouble: 7 ldouble: 7
Test "Imaginary part of: cacosh (-2 - 3 i) == -1.9833870299165354323470769028940395 + 2.1414491111159960199416055713254211 i": Test "Imaginary part of: cacosh (-2 - 3 i) == 1.9833870299165354323470769028940395 - 2.1414491111159960199416055713254211 i":
double: 1 double: 1
idouble: 1 idouble: 1
ildouble: 1 ildouble: 1

View file

@ -36,14 +36,14 @@ ildouble: 2
ldouble: 2 ldouble: 2
# cacosh # cacosh
Test "Real part of: cacosh (-2 - 3 i) == -1.9833870299165354323470769028940395 + 2.1414491111159960199416055713254211 i": Test "Real part of: cacosh (-2 - 3 i) == 1.9833870299165354323470769028940395 - 2.1414491111159960199416055713254211 i":
double: 1 double: 1
float: 7 float: 7
idouble: 1 idouble: 1
ifloat: 7 ifloat: 7
ildouble: 6 ildouble: 6
ldouble: 6 ldouble: 6
Test "Imaginary part of: cacosh (-2 - 3 i) == -1.9833870299165354323470769028940395 + 2.1414491111159960199416055713254211 i": Test "Imaginary part of: cacosh (-2 - 3 i) == 1.9833870299165354323470769028940395 - 2.1414491111159960199416055713254211 i":
double: 1 double: 1
idouble: 1 idouble: 1
ildouble: 2 ildouble: 2

View file

@ -17,12 +17,12 @@ float: 1
ifloat: 1 ifloat: 1
# cacosh # cacosh
Test "Real part of: cacosh (-2 - 3 i) == -1.9833870299165354323470769028940395 + 2.1414491111159960199416055713254211 i": Test "Real part of: cacosh (-2 - 3 i) == 1.9833870299165354323470769028940395 - 2.1414491111159960199416055713254211 i":
double: 1 double: 1
float: 7 float: 7
idouble: 1 idouble: 1
ifloat: 7 ifloat: 7
Test "Imaginary part of: cacosh (-2 - 3 i) == -1.9833870299165354323470769028940395 + 2.1414491111159960199416055713254211 i": Test "Imaginary part of: cacosh (-2 - 3 i) == 1.9833870299165354323470769028940395 - 2.1414491111159960199416055713254211 i":
double: 1 double: 1
float: 3 float: 3
idouble: 1 idouble: 1

View file

@ -17,12 +17,12 @@ float: 1
ifloat: 1 ifloat: 1
# cacosh # cacosh
Test "Real part of: cacosh (-2 - 3 i) == -1.9833870299165354323470769028940395 + 2.1414491111159960199416055713254211 i": Test "Real part of: cacosh (-2 - 3 i) == 1.9833870299165354323470769028940395 - 2.1414491111159960199416055713254211 i":
double: 1 double: 1
float: 7 float: 7
idouble: 1 idouble: 1
ifloat: 7 ifloat: 7
Test "Imaginary part of: cacosh (-2 - 3 i) == -1.9833870299165354323470769028940395 + 2.1414491111159960199416055713254211 i": Test "Imaginary part of: cacosh (-2 - 3 i) == 1.9833870299165354323470769028940395 - 2.1414491111159960199416055713254211 i":
double: 1 double: 1
float: 3 float: 3
idouble: 1 idouble: 1

View file

@ -17,12 +17,12 @@ float: 1
ifloat: 1 ifloat: 1
# cacosh # cacosh
Test "Real part of: cacosh (-2 - 3 i) == -1.9833870299165354323470769028940395 + 2.1414491111159960199416055713254211 i": Test "Real part of: cacosh (-2 - 3 i) == 1.9833870299165354323470769028940395 - 2.1414491111159960199416055713254211 i":
double: 1 double: 1
float: 7 float: 7
idouble: 1 idouble: 1
ifloat: 7 ifloat: 7
Test "Imaginary part of: cacosh (-2 - 3 i) == -1.9833870299165354323470769028940395 + 2.1414491111159960199416055713254211 i": Test "Imaginary part of: cacosh (-2 - 3 i) == 1.9833870299165354323470769028940395 - 2.1414491111159960199416055713254211 i":
double: 1 double: 1
float: 3 float: 3
idouble: 1 idouble: 1

View file

@ -60,12 +60,12 @@ float: 1
ifloat: 1 ifloat: 1
# cacosh # cacosh
Test "Real part of: cacosh (-2 - 3 i) == -1.9833870299165354323470769028940395 + 2.1414491111159960199416055713254211 i": Test "Real part of: cacosh (-2 - 3 i) == 1.9833870299165354323470769028940395 - 2.1414491111159960199416055713254211 i":
double: 1 double: 1
float: 7 float: 7
idouble: 1 idouble: 1
ifloat: 7 ifloat: 7
Test "Imaginary part of: cacosh (-2 - 3 i) == -1.9833870299165354323470769028940395 + 2.1414491111159960199416055713254211 i": Test "Imaginary part of: cacosh (-2 - 3 i) == 1.9833870299165354323470769028940395 - 2.1414491111159960199416055713254211 i":
double: 1 double: 1
float: 3 float: 3
idouble: 1 idouble: 1

View file

@ -33,14 +33,14 @@ ildouble: 1
ldouble: 1 ldouble: 1
# cacosh # cacosh
Test "Real part of: cacosh (-2 - 3 i) == -1.9833870299165354323470769028940395 + 2.1414491111159960199416055713254211 i": Test "Real part of: cacosh (-2 - 3 i) == 1.9833870299165354323470769028940395 - 2.1414491111159960199416055713254211 i":
double: 1 double: 1
float: 7 float: 7
idouble: 1 idouble: 1
ifloat: 7 ifloat: 7
ildouble: 5 ildouble: 5
ldouble: 5 ldouble: 5
Test "Imaginary part of: cacosh (-2 - 3 i) == -1.9833870299165354323470769028940395 + 2.1414491111159960199416055713254211 i": Test "Imaginary part of: cacosh (-2 - 3 i) == 1.9833870299165354323470769028940395 - 2.1414491111159960199416055713254211 i":
double: 1 double: 1
float: 3 float: 3
idouble: 1 idouble: 1

View file

@ -33,14 +33,14 @@ ildouble: 1
ldouble: 1 ldouble: 1
# cacosh # cacosh
Test "Real part of: cacosh (-2 - 3 i) == -1.9833870299165354323470769028940395 + 2.1414491111159960199416055713254211 i": Test "Real part of: cacosh (-2 - 3 i) == 1.9833870299165354323470769028940395 - 2.1414491111159960199416055713254211 i":
double: 1 double: 1
float: 7 float: 7
idouble: 1 idouble: 1
ifloat: 7 ifloat: 7
ildouble: 5 ildouble: 5
ldouble: 5 ldouble: 5
Test "Imaginary part of: cacosh (-2 - 3 i) == -1.9833870299165354323470769028940395 + 2.1414491111159960199416055713254211 i": Test "Imaginary part of: cacosh (-2 - 3 i) == 1.9833870299165354323470769028940395 - 2.1414491111159960199416055713254211 i":
double: 1 double: 1
float: 3 float: 3
idouble: 1 idouble: 1

View file

@ -48,14 +48,14 @@ ildouble: 2
ldouble: 2 ldouble: 2
# cacosh # cacosh
Test "Real part of: cacosh (-2 - 3 i) == -1.9833870299165354323470769028940395 + 2.1414491111159960199416055713254211 i": Test "Real part of: cacosh (-2 - 3 i) == 1.9833870299165354323470769028940395 - 2.1414491111159960199416055713254211 i":
double: 1 double: 1
float: 7 float: 7
idouble: 1 idouble: 1
ifloat: 7 ifloat: 7
ildouble: 6 ildouble: 6
ldouble: 6 ldouble: 6
Test "Imaginary part of: cacosh (-2 - 3 i) == -1.9833870299165354323470769028940395 + 2.1414491111159960199416055713254211 i": Test "Imaginary part of: cacosh (-2 - 3 i) == 1.9833870299165354323470769028940395 - 2.1414491111159960199416055713254211 i":
double: 1 double: 1
float: 3 float: 3
idouble: 1 idouble: 1