2001-04-07  Stephen L Moshier  <moshier@mediaone.net>

	* sysdeps/ieee754/ldbl-128/e_logl.c: Correct infinity and NaN
	return values.
This commit is contained in:
Ulrich Drepper 2001-04-08 05:16:21 +00:00
parent 232fdf8cab
commit 4c45055616
5 changed files with 30 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2001-04-07 Stephen L Moshier <moshier@mediaone.net>
* sysdeps/ieee754/ldbl-128/e_logl.c: Correct infinity and NaN
return values.
2001-04-07 Ulrich Drepper <drepper@redhat.com>
* stdlib/tst-setcontext.c (main): Add a test for setcontext.

View File

@ -48,7 +48,7 @@ CFLAGS-charmap.c = -DCHARMAP_PATH='"$(i18ndir)/charmaps"' \
tests = tst-iconv1 tst-iconv2 tst-iconv3
distribute = gconv_builtin.h gconv_int.h loop.c skeleton.c iconv_prog.h \
iconv_charmap.c dummy-repertoire.c
iconv_charmap.c dummy-repertoire.c gconv_charset.h
others = iconv_prog
install-others = $(inst_bindir)/iconv

View File

@ -1052,6 +1052,8 @@ primitives, so they are not a portability threat. They are defined in
These functions are controlled with arrays of @code{iovec} structures,
which describe the location and size of each buffer.
@comment sys/uio.h
@comment BSD
@deftp {Data Type} {struct iovec}
The @code{iovec} structure describes a buffer. It contains two fields:
@ -1067,6 +1069,8 @@ Contains the length of the buffer.
@end table
@end deftp
@comment sys/uio.h
@comment BSD
@deftypefun ssize_t readv (int @var{filedes}, const struct iovec *@var{vector}, int @var{count})
The @code{readv} function reads data from @var{filedes} and scatters it
@ -1083,6 +1087,8 @@ errors are the same as in @code{read}.
@end deftypefun
@comment sys/uio.h
@comment BSD
@deftypefun ssize_t writev (int @var{filedes}, const struct iovec *@var{vector}, int @var{count})
The @code{writev} function gathers data from the buffers described in
@ -1141,6 +1147,8 @@ size_t page_size = (size_t) sysconf (_SC_PAGESIZE);
@noindent
These functions are declared in @file{sys/mman.h}.
@comment sys/mman.h
@comment POSIX
@deftypefun {void *} mmap (void *@var{address}, size_t @var{length},int @var{protect}, int @var{flags}, int @var{filedes}, off_t @var{offset})
The @code{mmap} function creates a new mapping, connected to bytes
@ -1257,6 +1265,8 @@ The file is on a filesystem that doesn't support mapping.
@end deftypefun
@comment sys/mman.h
@comment LFS
@deftypefun {void *} mmap64 (void *@var{address}, size_t @var{length},int @var{protect}, int @var{flags}, int @var{filedes}, off64_t @var{offset})
The @code{mmap64} function is equivalent to the @code{mmap} function but
the @var{offset} parameter is of type @code{off64_t}. On 32-bit systems
@ -1271,6 +1281,8 @@ new, extended API using 64 bit file sizes and offsets transparently
replaces the old API.
@end deftypefun
@comment sys/mman.h
@comment POSIX
@deftypefun int munmap (void *@var{addr}, size_t @var{length})
@code{munmap} removes any memory maps from (@var{addr}) to (@var{addr} +
@ -1295,6 +1307,8 @@ aligned.
@end deftypefun
@comment sys/mman.h
@comment POSIX
@deftypefun int msync (void *@var{address}, size_t @var{length}, int @var{flags})
When using shared mappings, the kernel can write the file at any time
@ -1340,6 +1354,8 @@ There is no existing mapping in at least part of the given region.
@end deftypefun
@comment sys/mman.h
@comment GNU
@deftypefun {void *} mremap (void *@var{address}, size_t @var{length}, size_t @var{new_length}, int @var{flag})
This function can be used to change the size of an existing memory

View File

@ -184,16 +184,16 @@ __ieee754_logl(long double x)
/* log(0) = -infinity. */
if ((k | u.parts32.w1 | u.parts32.w2 | u.parts32.w3) == 0)
{
u.parts32.w0 = 0xffff;
u.parts32.w0 = 0xffff0000;
return u.value;
}
/* log ( x < 0 ) = NaN */
if (m & 0x80000000)
{
u.parts32.w0 = 0x7fff;
u.parts32.w1 = 0xffff;
u.parts32.w2 = 0xffff;
u.parts32.w3 = 0xffff;
u.parts32.w0 = 0x7fffffff;
u.parts32.w1 = 0xffffffff;
u.parts32.w2 = 0xffffffff;
u.parts32.w3 = 0xffffffff;
return u.value;
}
/* log (infinity or NaN) */

View File

@ -1,7 +1,10 @@
dl-sym.c
dl-open.c
dl-close.c
dl-libc.c
dlldr.h
kernel_proto.h
bits/utmpx.h
gnu/lib-names.h
uitrunc.c
utmpx.h