mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
Fix leading whitespaces.
This commit is contained in:
66
ChangeLog
66
ChangeLog
@ -1,3 +1,69 @@
|
|||||||
|
2013-06-06 Ondřej Bílka <neleai@seznam.cz>
|
||||||
|
|
||||||
|
* debug/fgetws_u_chk.c: Fix leading whitespaces.
|
||||||
|
* elf/sln.c: Likewise.
|
||||||
|
* hurd/hurd/ioctl.h: Likewise.
|
||||||
|
* hurd/hurdmalloc.c: Likewise.
|
||||||
|
* hurd/xattr.c: Likewise.
|
||||||
|
* include/shlib-compat.h: Likewise.
|
||||||
|
* inet/ruserpass.c: Likewise.
|
||||||
|
* libio/iofgets_u.c: Likewise.
|
||||||
|
* libio/iofgetws_u.c: Likewise.
|
||||||
|
* locale/programs/ld-identification.c: Likewise.
|
||||||
|
* locale/programs/ld-time.c: Likewise.
|
||||||
|
* mach/msg-destroy.c: Likewise.
|
||||||
|
* nss/nss_files/files-netgrp.c: Likewise.
|
||||||
|
* resolv/res_data.c: Likewise.
|
||||||
|
* soft-fp/op-1.h: Likewise.
|
||||||
|
* soft-fp/op-2.h: Likewise.
|
||||||
|
* soft-fp/op-4.h: Likewise.
|
||||||
|
* soft-fp/op-common.h: Likewise.
|
||||||
|
* stdio-common/printf_fphex.c: Likewise.
|
||||||
|
* stdlib/strtod_l.c: Likewise.
|
||||||
|
* sunrpc/rpc/clnt.h: Likewise.
|
||||||
|
* sysdeps/generic/framestate.c: Likewise.
|
||||||
|
* sysdeps/i386/bsd-_setjmp.S: Likewise.
|
||||||
|
* sysdeps/i386/bsd-setjmp.S: Likewise.
|
||||||
|
* sysdeps/i386/__longjmp.S: Likewise.
|
||||||
|
* sysdeps/i386/setjmp.S: Likewise.
|
||||||
|
* sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
|
||||||
|
* sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
|
||||||
|
* sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
|
||||||
|
* sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
|
||||||
|
* sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
|
||||||
|
* sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
|
||||||
|
* sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
|
||||||
|
* sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
|
||||||
|
* sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
|
||||||
|
* sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
|
||||||
|
* sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
|
||||||
|
* sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
|
||||||
|
* sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
|
||||||
|
* sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
|
||||||
|
* sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
|
||||||
|
* sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
|
||||||
|
* sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
|
||||||
|
* sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
|
||||||
|
* sysdeps/ieee754/support.c: Likewise.
|
||||||
|
* sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
|
||||||
|
* sysdeps/powerpc/powerpc32/lshift.S: Likewise.
|
||||||
|
* sysdeps/sparc/sparc32/__longjmp.S: Likewise.
|
||||||
|
* sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
|
||||||
|
* sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
|
||||||
|
* sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
|
||||||
|
* sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
|
||||||
|
* sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
|
||||||
|
* sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
|
||||||
|
* sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
|
||||||
|
* sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
|
||||||
|
* sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
|
||||||
|
* sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
|
||||||
|
* sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
|
||||||
|
* sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
|
||||||
|
* sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/lutimes.c: Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
|
||||||
|
|
||||||
2013-06-05 Ondřej Bílka <neleai@seznam.cz>
|
2013-06-05 Ondřej Bílka <neleai@seznam.cz>
|
||||||
|
|
||||||
* posix/transbug.c: Remove executable mode.
|
* posix/transbug.c: Remove executable mode.
|
||||||
|
@ -46,7 +46,7 @@ __fgetws_unlocked_chk (wchar_t *buf, size_t size, int n, _IO_FILE *fp)
|
|||||||
/* If we read in some bytes and errno is EAGAIN, that error will
|
/* If we read in some bytes and errno is EAGAIN, that error will
|
||||||
be reported for next read. */
|
be reported for next read. */
|
||||||
if (count == 0 || ((fp->_IO_file_flags & _IO_ERR_SEEN)
|
if (count == 0 || ((fp->_IO_file_flags & _IO_ERR_SEEN)
|
||||||
&& errno != EAGAIN))
|
&& errno != EAGAIN))
|
||||||
result = NULL;
|
result = NULL;
|
||||||
else if (count >= size)
|
else if (count >= size)
|
||||||
__chk_fail ();
|
__chk_fail ();
|
||||||
|
@ -176,13 +176,13 @@ makesymlink (src, dest)
|
|||||||
if (S_ISDIR (stats.st_mode))
|
if (S_ISDIR (stats.st_mode))
|
||||||
{
|
{
|
||||||
fprintf (stderr, _("%s: destination must not be a directory\n"),
|
fprintf (stderr, _("%s: destination must not be a directory\n"),
|
||||||
dest);
|
dest);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
else if (unlink (dest) && errno != ENOENT)
|
else if (unlink (dest) && errno != ENOENT)
|
||||||
{
|
{
|
||||||
fprintf (stderr, _("%s: failed to remove the old destination\n"),
|
fprintf (stderr, _("%s: failed to remove the old destination\n"),
|
||||||
dest);
|
dest);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -205,7 +205,7 @@ makesymlink (src, dest)
|
|||||||
error = strerror (errno);
|
error = strerror (errno);
|
||||||
unlink (dest);
|
unlink (dest);
|
||||||
fprintf (stderr, _("Invalid link from \"%s\" to \"%s\": %s\n"),
|
fprintf (stderr, _("Invalid link from \"%s\" to \"%s\": %s\n"),
|
||||||
src, dest, error);
|
src, dest, error);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
@ -214,7 +214,7 @@ makesymlink (src, dest)
|
|||||||
{
|
{
|
||||||
error = strerror (errno);
|
error = strerror (errno);
|
||||||
fprintf (stderr, _("Invalid link from \"%s\" to \"%s\": %s\n"),
|
fprintf (stderr, _("Invalid link from \"%s\" to \"%s\": %s\n"),
|
||||||
src, dest, error);
|
src, dest, error);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -54,7 +54,7 @@ extern int hurd_register_ioctl_handler (int first_request, int last_request,
|
|||||||
|
|
||||||
#define _HURD_HANDLE_IOCTLS_1(handler, first, last, moniker) \
|
#define _HURD_HANDLE_IOCTLS_1(handler, first, last, moniker) \
|
||||||
static const struct ioctl_handler handler##_ioctl_handler##moniker \
|
static const struct ioctl_handler handler##_ioctl_handler##moniker \
|
||||||
__attribute__ ((__unused__)) = \
|
__attribute__ ((__unused__)) = \
|
||||||
{ _IOC_NOTYPE (first), _IOC_NOTYPE (last), \
|
{ _IOC_NOTYPE (first), _IOC_NOTYPE (last), \
|
||||||
(ioctl_handler_t) (handler), NULL }; \
|
(ioctl_handler_t) (handler), NULL }; \
|
||||||
text_set_element (_hurd_ioctl_handler_lists, \
|
text_set_element (_hurd_ioctl_handler_lists, \
|
||||||
|
@ -382,15 +382,15 @@ realloc(old_base, new_size)
|
|||||||
void
|
void
|
||||||
print_malloc_free_list()
|
print_malloc_free_list()
|
||||||
{
|
{
|
||||||
register int i, size;
|
register int i, size;
|
||||||
register free_list_t fl;
|
register free_list_t fl;
|
||||||
register int n;
|
register int n;
|
||||||
register header_t h;
|
register header_t h;
|
||||||
int total_used = 0;
|
int total_used = 0;
|
||||||
int total_free = 0;
|
int total_free = 0;
|
||||||
|
|
||||||
fprintf(stderr, " Size In Use Free Total\n");
|
fprintf(stderr, " Size In Use Free Total\n");
|
||||||
for (i = 0, size = MIN_SIZE, fl = malloc_free_list;
|
for (i = 0, size = MIN_SIZE, fl = malloc_free_list;
|
||||||
i < NBUCKETS;
|
i < NBUCKETS;
|
||||||
i += 1, size <<= 1, fl += 1) {
|
i += 1, size <<= 1, fl += 1) {
|
||||||
spin_lock(&fl->lock);
|
spin_lock(&fl->lock);
|
||||||
@ -403,8 +403,8 @@ print_malloc_free_list()
|
|||||||
size, fl->in_use, n, fl->in_use + n);
|
size, fl->in_use, n, fl->in_use + n);
|
||||||
}
|
}
|
||||||
spin_unlock(&fl->lock);
|
spin_unlock(&fl->lock);
|
||||||
}
|
}
|
||||||
fprintf(stderr, " all sizes %10d %10d %10d\n",
|
fprintf(stderr, " all sizes %10d %10d %10d\n",
|
||||||
total_used, total_free, total_used + total_free);
|
total_used, total_free, total_used + total_free);
|
||||||
}
|
}
|
||||||
#endif /* DEBUG */
|
#endif /* DEBUG */
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
gnu.author empty if st_author==st_uid
|
gnu.author empty if st_author==st_uid
|
||||||
uid_t giving st_author value
|
uid_t giving st_author value
|
||||||
gnu.translator empty if no passive translator
|
gnu.translator empty if no passive translator
|
||||||
translator and arguments: "/hurd/foo\0arg1\0arg2\0"
|
translator and arguments: "/hurd/foo\0arg1\0arg2\0"
|
||||||
*/
|
*/
|
||||||
|
|
||||||
error_t
|
error_t
|
||||||
|
@ -57,7 +57,7 @@
|
|||||||
the version set name to use for e.g. symbols first introduced into
|
the version set name to use for e.g. symbols first introduced into
|
||||||
libm in the GLIBC_2.1 version. Definitions of symbols with explicit
|
libm in the GLIBC_2.1 version. Definitions of symbols with explicit
|
||||||
versions should look like:
|
versions should look like:
|
||||||
versioned_symbol (libm, new_foo, foo, GLIBC_2_1);
|
versioned_symbol (libm, new_foo, foo, GLIBC_2_1);
|
||||||
This will define the symbol `foo' with the appropriate default version,
|
This will define the symbol `foo' with the appropriate default version,
|
||||||
i.e. either GLIBC_2.1 or the "earliest version" specified in
|
i.e. either GLIBC_2.1 or the "earliest version" specified in
|
||||||
shlib-versions if that is newer. */
|
shlib-versions if that is newer. */
|
||||||
|
@ -108,7 +108,7 @@ ruserpass(host, aname, apass)
|
|||||||
which is no improvement. This really should call
|
which is no improvement. This really should call
|
||||||
getpwuid(getuid()). */
|
getpwuid(getuid()). */
|
||||||
/*hdir = ".";*/
|
/*hdir = ".";*/
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
buf = alloca (strlen (hdir) + 8);
|
buf = alloca (strlen (hdir) + 8);
|
||||||
|
@ -56,7 +56,7 @@ fgets_unlocked (buf, n, fp)
|
|||||||
/* If we read in some bytes and errno is EAGAIN, that error will
|
/* If we read in some bytes and errno is EAGAIN, that error will
|
||||||
be reported for next read. */
|
be reported for next read. */
|
||||||
if (count == 0 || ((fp->_IO_file_flags & _IO_ERR_SEEN)
|
if (count == 0 || ((fp->_IO_file_flags & _IO_ERR_SEEN)
|
||||||
&& errno != EAGAIN))
|
&& errno != EAGAIN))
|
||||||
result = NULL;
|
result = NULL;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -56,7 +56,7 @@ fgetws_unlocked (buf, n, fp)
|
|||||||
/* If we read in some bytes and errno is EAGAIN, that error will
|
/* If we read in some bytes and errno is EAGAIN, that error will
|
||||||
be reported for next read. */
|
be reported for next read. */
|
||||||
if (count == 0 || ((fp->_IO_file_flags & _IO_ERR_SEEN)
|
if (count == 0 || ((fp->_IO_file_flags & _IO_ERR_SEEN)
|
||||||
&& errno != EAGAIN))
|
&& errno != EAGAIN))
|
||||||
result = NULL;
|
result = NULL;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -144,7 +144,7 @@ No definition for %s category found"), "LC_IDENTIFICATION"));
|
|||||||
{ \
|
{ \
|
||||||
if (verbose && ! nothing) \
|
if (verbose && ! nothing) \
|
||||||
WITH_CUR_LOCALE (error (0, 0, _("%s: field `%s' not defined"), \
|
WITH_CUR_LOCALE (error (0, 0, _("%s: field `%s' not defined"), \
|
||||||
"LC_IDENTIFICATION", #cat)); \
|
"LC_IDENTIFICATION", #cat)); \
|
||||||
identification->cat = ""; \
|
identification->cat = ""; \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1040,7 +1040,7 @@ time_read (struct linereader *ldfile, struct localedef_t *result,
|
|||||||
time->cat[cnt] = ""; \
|
time->cat[cnt] = ""; \
|
||||||
time->w##cat[cnt++] = empty_wstr; \
|
time->w##cat[cnt++] = empty_wstr; \
|
||||||
} \
|
} \
|
||||||
\
|
\
|
||||||
if (now->tok == tok_semicolon) \
|
if (now->tok == tok_semicolon) \
|
||||||
{ \
|
{ \
|
||||||
now = lr_token (ldfile, charmap, result, repertoire, \
|
now = lr_token (ldfile, charmap, result, repertoire, \
|
||||||
|
@ -75,10 +75,10 @@ __mach_msg_destroy(msg)
|
|||||||
mach_msg_body_t *body;
|
mach_msg_body_t *body;
|
||||||
mach_msg_descriptor_t *saddr, *eaddr;
|
mach_msg_descriptor_t *saddr, *eaddr;
|
||||||
|
|
||||||
body = (mach_msg_body_t *) (msg + 1);
|
body = (mach_msg_body_t *) (msg + 1);
|
||||||
saddr = (mach_msg_descriptor_t *)
|
saddr = (mach_msg_descriptor_t *)
|
||||||
((mach_msg_base_t *) msg + 1);
|
((mach_msg_base_t *) msg + 1);
|
||||||
eaddr = saddr + body->msgh_descriptor_count;
|
eaddr = saddr + body->msgh_descriptor_count;
|
||||||
|
|
||||||
for ( ; saddr < eaddr; saddr++) {
|
for ( ; saddr < eaddr; saddr++) {
|
||||||
switch (saddr->type.type) {
|
switch (saddr->type.type) {
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2013-06-06 Ondřej Bílka <neleai@seznam.cz>
|
||||||
|
|
||||||
|
* tst-cond22.c: Fix leading whitespaces.
|
||||||
|
* tst-umask1.c: Likewise.
|
||||||
|
|
||||||
2013-06-06 Joseph Myers <joseph@codesourcery.com>
|
2013-06-06 Joseph Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Remove
|
* sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Remove
|
||||||
|
@ -107,7 +107,7 @@ do_test (void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
printf ("cond = { %d, %x, %lld, %lld, %lld, %p, %u, %u }\n",
|
printf ("cond = { %d, %x, %lld, %lld, %lld, %p, %u, %u }\n",
|
||||||
c.__data.__lock, c.__data.__futex, c.__data.__total_seq,
|
c.__data.__lock, c.__data.__futex, c.__data.__total_seq,
|
||||||
c.__data.__wakeup_seq, c.__data.__woken_seq, c.__data.__mutex,
|
c.__data.__wakeup_seq, c.__data.__woken_seq, c.__data.__mutex,
|
||||||
c.__data.__nwaiters, c.__data.__broadcast_seq);
|
c.__data.__nwaiters, c.__data.__broadcast_seq);
|
||||||
|
|
||||||
@ -149,7 +149,7 @@ do_test (void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
printf ("cond = { %d, %x, %lld, %lld, %lld, %p, %u, %u }\n",
|
printf ("cond = { %d, %x, %lld, %lld, %lld, %p, %u, %u }\n",
|
||||||
c.__data.__lock, c.__data.__futex, c.__data.__total_seq,
|
c.__data.__lock, c.__data.__futex, c.__data.__total_seq,
|
||||||
c.__data.__wakeup_seq, c.__data.__woken_seq, c.__data.__mutex,
|
c.__data.__wakeup_seq, c.__data.__woken_seq, c.__data.__mutex,
|
||||||
c.__data.__nwaiters, c.__data.__broadcast_seq);
|
c.__data.__nwaiters, c.__data.__broadcast_seq);
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@ work (const char *fname, int mask)
|
|||||||
if ((st.st_mode & mask) != 0)
|
if ((st.st_mode & mask) != 0)
|
||||||
{
|
{
|
||||||
printf ("mask not successful after %s: %x still set\n",
|
printf ("mask not successful after %s: %x still set\n",
|
||||||
fcts[i].name, (unsigned int) (st.st_mode & mask));
|
fcts[i].name, (unsigned int) (st.st_mode & mask));
|
||||||
result = 1;
|
result = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -46,7 +46,7 @@ libnss_files_hidden_proto (_nss_files_endnetgrent)
|
|||||||
status = NSS_STATUS_UNAVAIL; \
|
status = NSS_STATUS_UNAVAIL; \
|
||||||
goto the_end; \
|
goto the_end; \
|
||||||
} \
|
} \
|
||||||
\
|
\
|
||||||
result->cursor = result->data + old_cursor; \
|
result->cursor = result->data + old_cursor; \
|
||||||
} \
|
} \
|
||||||
while (0)
|
while (0)
|
||||||
|
@ -236,7 +236,7 @@ res_sendsigned(const u_char *buf, int buflen, ns_tsig_key *key,
|
|||||||
void
|
void
|
||||||
res_close(void) {
|
res_close(void) {
|
||||||
#ifdef _LIBC
|
#ifdef _LIBC
|
||||||
/*
|
/*
|
||||||
* Some stupid programs out there call res_close() before res_init().
|
* Some stupid programs out there call res_close() before res_init().
|
||||||
* Since _res._vcsock isn't explicitly initialized, these means that
|
* Since _res._vcsock isn't explicitly initialized, these means that
|
||||||
* we could do a close(0), which might lead to some security problems.
|
* we could do a close(0), which might lead to some security problems.
|
||||||
|
@ -233,7 +233,7 @@ do { \
|
|||||||
_nl = X##_f << (_FP_W_TYPE_SIZE - 1); \
|
_nl = X##_f << (_FP_W_TYPE_SIZE - 1); \
|
||||||
_nh = X##_f >> 1; \
|
_nh = X##_f >> 1; \
|
||||||
} \
|
} \
|
||||||
\
|
\
|
||||||
udiv_qrnnd(_q, _r, _nh, _nl, _y); \
|
udiv_qrnnd(_q, _r, _nh, _nl, _y); \
|
||||||
R##_f = _q | (_r != 0); \
|
R##_f = _q | (_r != 0); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
@ -433,10 +433,10 @@
|
|||||||
R##_f1 = (_t240 << (128 - (wfracbits - 1))) \
|
R##_f1 = (_t240 << (128 - (wfracbits - 1))) \
|
||||||
| ((_u240 & 0xffffff) >> ((wfracbits - 1) - 104)); \
|
| ((_u240 & 0xffffff) >> ((wfracbits - 1) - 104)); \
|
||||||
R##_f0 = ((_u240 & 0xffffff) << (168 - (wfracbits - 1))) \
|
R##_f0 = ((_u240 & 0xffffff) << (168 - (wfracbits - 1))) \
|
||||||
| ((_v240 & 0xffffff) << (144 - (wfracbits - 1))) \
|
| ((_v240 & 0xffffff) << (144 - (wfracbits - 1))) \
|
||||||
| ((_w240 & 0xffffff) << (120 - (wfracbits - 1))) \
|
| ((_w240 & 0xffffff) << (120 - (wfracbits - 1))) \
|
||||||
| ((_x240 & 0xffffff) >> ((wfracbits - 1) - 96)) \
|
| ((_x240 & 0xffffff) >> ((wfracbits - 1) - 96)) \
|
||||||
| _y240; \
|
| _y240; \
|
||||||
resetfe; \
|
resetfe; \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
|
@ -481,7 +481,7 @@
|
|||||||
S##_f[2] += (T##_f[1] > S##_f[1]); \
|
S##_f[2] += (T##_f[1] > S##_f[1]); \
|
||||||
S##_f[3] += (T##_f[2] > S##_f[2]); \
|
S##_f[3] += (T##_f[2] > S##_f[2]); \
|
||||||
__FP_FRAC_DEC_3(X##_f[3], X##_f[2], X##_f[1], \
|
__FP_FRAC_DEC_3(X##_f[3], X##_f[2], X##_f[1], \
|
||||||
T##_f[3], T##_f[2], T##_f[1]); \
|
T##_f[3], T##_f[2], T##_f[1]); \
|
||||||
R##_f[1] += q; \
|
R##_f[1] += q; \
|
||||||
} \
|
} \
|
||||||
_FP_FRAC_SLL_4(X, 1); \
|
_FP_FRAC_SLL_4(X, 1); \
|
||||||
|
@ -992,28 +992,28 @@ do { \
|
|||||||
case FP_CLS_NAN: \
|
case FP_CLS_NAN: \
|
||||||
_FP_FRAC_COPY_##wc(R, X); \
|
_FP_FRAC_COPY_##wc(R, X); \
|
||||||
R##_s = X##_s; \
|
R##_s = X##_s; \
|
||||||
R##_c = FP_CLS_NAN; \
|
R##_c = FP_CLS_NAN; \
|
||||||
break; \
|
break; \
|
||||||
case FP_CLS_INF: \
|
case FP_CLS_INF: \
|
||||||
if (X##_s) \
|
if (X##_s) \
|
||||||
{ \
|
{ \
|
||||||
R##_s = _FP_NANSIGN_##fs; \
|
R##_s = _FP_NANSIGN_##fs; \
|
||||||
R##_c = FP_CLS_NAN; /* NAN */ \
|
R##_c = FP_CLS_NAN; /* NAN */ \
|
||||||
_FP_FRAC_SET_##wc(R, _FP_NANFRAC_##fs); \
|
_FP_FRAC_SET_##wc(R, _FP_NANFRAC_##fs); \
|
||||||
FP_SET_EXCEPTION(FP_EX_INVALID); \
|
FP_SET_EXCEPTION(FP_EX_INVALID); \
|
||||||
} \
|
} \
|
||||||
else \
|
else \
|
||||||
{ \
|
{ \
|
||||||
R##_s = 0; \
|
R##_s = 0; \
|
||||||
R##_c = FP_CLS_INF; /* sqrt(+inf) = +inf */ \
|
R##_c = FP_CLS_INF; /* sqrt(+inf) = +inf */ \
|
||||||
} \
|
} \
|
||||||
break; \
|
break; \
|
||||||
case FP_CLS_ZERO: \
|
case FP_CLS_ZERO: \
|
||||||
R##_s = X##_s; \
|
R##_s = X##_s; \
|
||||||
R##_c = FP_CLS_ZERO; /* sqrt(+-0) = +-0 */ \
|
R##_c = FP_CLS_ZERO; /* sqrt(+-0) = +-0 */ \
|
||||||
break; \
|
break; \
|
||||||
case FP_CLS_NORMAL: \
|
case FP_CLS_NORMAL: \
|
||||||
R##_s = 0; \
|
R##_s = 0; \
|
||||||
if (X##_s) \
|
if (X##_s) \
|
||||||
{ \
|
{ \
|
||||||
R##_c = FP_CLS_NAN; /* NAN */ \
|
R##_c = FP_CLS_NAN; /* NAN */ \
|
||||||
@ -1022,7 +1022,7 @@ do { \
|
|||||||
FP_SET_EXCEPTION(FP_EX_INVALID); \
|
FP_SET_EXCEPTION(FP_EX_INVALID); \
|
||||||
break; \
|
break; \
|
||||||
} \
|
} \
|
||||||
R##_c = FP_CLS_NORMAL; \
|
R##_c = FP_CLS_NORMAL; \
|
||||||
if (X##_e & 1) \
|
if (X##_e & 1) \
|
||||||
_FP_FRAC_SLL_##wc(X, 1); \
|
_FP_FRAC_SLL_##wc(X, 1); \
|
||||||
R##_e = X##_e >> 1; \
|
R##_e = X##_e >> 1; \
|
||||||
|
@ -384,7 +384,7 @@ __printf_fphex (FILE *fp,
|
|||||||
{
|
{
|
||||||
wnumstr[cnt] = (wchar_t) info->spec;
|
wnumstr[cnt] = (wchar_t) info->spec;
|
||||||
numstr[cnt] = info->spec; /* This is tricky,
|
numstr[cnt] = info->spec; /* This is tricky,
|
||||||
think about it! */
|
think about it! */
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else if (tolower (ch) < 'f')
|
else if (tolower (ch) < 'f')
|
||||||
|
@ -976,7 +976,7 @@ ____STRTOF_INTERNAL (nptr, endptr, group, loc)
|
|||||||
/* The exponent is too large/small to represent a valid
|
/* The exponent is too large/small to represent a valid
|
||||||
number. */
|
number. */
|
||||||
{
|
{
|
||||||
FLOAT result;
|
FLOAT result;
|
||||||
|
|
||||||
/* We have to take care for special situation: a joker
|
/* We have to take care for special situation: a joker
|
||||||
might have written "0.0e100000" which is in fact
|
might have written "0.0e100000" which is in fact
|
||||||
|
@ -132,7 +132,7 @@ struct CLIENT {
|
|||||||
struct clnt_ops {
|
struct clnt_ops {
|
||||||
enum clnt_stat (*cl_call) (CLIENT *, u_long, xdrproc_t, caddr_t, xdrproc_t,
|
enum clnt_stat (*cl_call) (CLIENT *, u_long, xdrproc_t, caddr_t, xdrproc_t,
|
||||||
caddr_t, struct timeval);
|
caddr_t, struct timeval);
|
||||||
/* call remote procedure */
|
/* call remote procedure */
|
||||||
void (*cl_abort) (void); /* abort a call */
|
void (*cl_abort) (void); /* abort a call */
|
||||||
void (*cl_geterr) (CLIENT *, struct rpc_err *);
|
void (*cl_geterr) (CLIENT *, struct rpc_err *);
|
||||||
/* get specific error code */
|
/* get specific error code */
|
||||||
|
@ -44,7 +44,7 @@ __frame_state_for (void *pc, struct frame_state *frame_state)
|
|||||||
#ifndef __USING_SJLJ_EXCEPTIONS__
|
#ifndef __USING_SJLJ_EXCEPTIONS__
|
||||||
frame_state_for = fallback_frame_state_for;
|
frame_state_for = fallback_frame_state_for;
|
||||||
#else
|
#else
|
||||||
frame_state_for = abort;
|
frame_state_for = abort;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ ENTRY (__longjmp)
|
|||||||
cfi_offset(%esi, JB_SI*4)
|
cfi_offset(%esi, JB_SI*4)
|
||||||
cfi_offset(%edi, JB_DI*4)
|
cfi_offset(%edi, JB_DI*4)
|
||||||
cfi_offset(%ebp, JB_BP*4)
|
cfi_offset(%ebp, JB_BP*4)
|
||||||
/* Restore registers. */
|
/* Restore registers. */
|
||||||
movl (JB_BX*4)(%eax), %ebx
|
movl (JB_BX*4)(%eax), %ebx
|
||||||
movl (JB_SI*4)(%eax), %esi
|
movl (JB_SI*4)(%eax), %esi
|
||||||
movl (JB_DI*4)(%eax), %edi
|
movl (JB_DI*4)(%eax), %edi
|
||||||
@ -59,7 +59,7 @@ ENTRY (__longjmp)
|
|||||||
/* Save the return address now. */
|
/* Save the return address now. */
|
||||||
movl (JB_PC*4)(%ecx), %edx
|
movl (JB_PC*4)(%ecx), %edx
|
||||||
LIBC_PROBE (longjmp, 3, 4@%ecx, -4@%eax, 4@%edx)
|
LIBC_PROBE (longjmp, 3, 4@%ecx, -4@%eax, 4@%edx)
|
||||||
/* Restore registers. */
|
/* Restore registers. */
|
||||||
movl (JB_BX*4)(%ecx), %ebx
|
movl (JB_BX*4)(%ecx), %ebx
|
||||||
movl (JB_SI*4)(%ecx), %esi
|
movl (JB_SI*4)(%ecx), %esi
|
||||||
movl (JB_DI*4)(%ecx), %edi
|
movl (JB_DI*4)(%ecx), %edi
|
||||||
@ -68,5 +68,5 @@ ENTRY (__longjmp)
|
|||||||
LIBC_PROBE (longjmp_target, 3, 4@%ecx, -4@%ecx, 4@%edx)
|
LIBC_PROBE (longjmp_target, 3, 4@%ecx, -4@%ecx, 4@%edx)
|
||||||
#endif
|
#endif
|
||||||
/* Jump to saved PC. */
|
/* Jump to saved PC. */
|
||||||
jmp *%edx
|
jmp *%edx
|
||||||
END (__longjmp)
|
END (__longjmp)
|
||||||
|
@ -33,7 +33,7 @@ ENTRY (_setjmp)
|
|||||||
xorl %eax, %eax
|
xorl %eax, %eax
|
||||||
movl JMPBUF(%esp), %edx
|
movl JMPBUF(%esp), %edx
|
||||||
|
|
||||||
/* Save registers. */
|
/* Save registers. */
|
||||||
movl %ebx, (JB_BX*4)(%edx)
|
movl %ebx, (JB_BX*4)(%edx)
|
||||||
movl %esi, (JB_SI*4)(%edx)
|
movl %esi, (JB_SI*4)(%edx)
|
||||||
movl %edi, (JB_DI*4)(%edx)
|
movl %edi, (JB_DI*4)(%edx)
|
||||||
@ -41,13 +41,13 @@ ENTRY (_setjmp)
|
|||||||
#ifdef PTR_MANGLE
|
#ifdef PTR_MANGLE
|
||||||
PTR_MANGLE (%ecx)
|
PTR_MANGLE (%ecx)
|
||||||
#endif
|
#endif
|
||||||
movl %ecx, (JB_SP*4)(%edx)
|
movl %ecx, (JB_SP*4)(%edx)
|
||||||
movl 0(%esp), %ecx /* Save PC we are returning to now. */
|
movl 0(%esp), %ecx /* Save PC we are returning to now. */
|
||||||
LIBC_PROBE (setjmp, 3, 4@%edx, -4@$0, 4@%ecx)
|
LIBC_PROBE (setjmp, 3, 4@%edx, -4@$0, 4@%ecx)
|
||||||
#ifdef PTR_MANGLE
|
#ifdef PTR_MANGLE
|
||||||
PTR_MANGLE (%ecx)
|
PTR_MANGLE (%ecx)
|
||||||
#endif
|
#endif
|
||||||
movl %ecx, (JB_PC*4)(%edx)
|
movl %ecx, (JB_PC*4)(%edx)
|
||||||
movl %ebp, (JB_BP*4)(%edx) /* Save caller's frame pointer. */
|
movl %ebp, (JB_BP*4)(%edx) /* Save caller's frame pointer. */
|
||||||
|
|
||||||
movl %eax, JB_SIZE(%edx) /* No signal mask set. */
|
movl %eax, JB_SIZE(%edx) /* No signal mask set. */
|
||||||
|
@ -35,7 +35,7 @@ ENTRY (setjmp)
|
|||||||
|
|
||||||
movl JMPBUF(%esp), %eax
|
movl JMPBUF(%esp), %eax
|
||||||
|
|
||||||
/* Save registers. */
|
/* Save registers. */
|
||||||
movl %ebx, (JB_BX*4)(%eax)
|
movl %ebx, (JB_BX*4)(%eax)
|
||||||
movl %esi, (JB_SI*4)(%eax)
|
movl %esi, (JB_SI*4)(%eax)
|
||||||
movl %edi, (JB_DI*4)(%eax)
|
movl %edi, (JB_DI*4)(%eax)
|
||||||
@ -43,13 +43,13 @@ ENTRY (setjmp)
|
|||||||
#ifdef PTR_MANGLE
|
#ifdef PTR_MANGLE
|
||||||
PTR_MANGLE (%ecx)
|
PTR_MANGLE (%ecx)
|
||||||
#endif
|
#endif
|
||||||
movl %ecx, (JB_SP*4)(%eax)
|
movl %ecx, (JB_SP*4)(%eax)
|
||||||
movl 0(%esp), %ecx /* Save PC we are returning to now. */
|
movl 0(%esp), %ecx /* Save PC we are returning to now. */
|
||||||
LIBC_PROBE (setjmp, 3, 4@%eax, -4@$1, 4@%ecx)
|
LIBC_PROBE (setjmp, 3, 4@%eax, -4@$1, 4@%ecx)
|
||||||
#ifdef PTR_MANGLE
|
#ifdef PTR_MANGLE
|
||||||
PTR_MANGLE (%ecx)
|
PTR_MANGLE (%ecx)
|
||||||
#endif
|
#endif
|
||||||
movl %ecx, (JB_PC*4)(%eax)
|
movl %ecx, (JB_PC*4)(%eax)
|
||||||
movl %ebp, (JB_BP*4)(%eax) /* Save caller's frame pointer. */
|
movl %ebp, (JB_BP*4)(%eax) /* Save caller's frame pointer. */
|
||||||
|
|
||||||
/* Call __sigjmp_save. */
|
/* Call __sigjmp_save. */
|
||||||
|
@ -29,7 +29,7 @@ ENTRY (__sigsetjmp)
|
|||||||
|
|
||||||
movl JMPBUF(%esp), %eax
|
movl JMPBUF(%esp), %eax
|
||||||
|
|
||||||
/* Save registers. */
|
/* Save registers. */
|
||||||
movl %ebx, (JB_BX*4)(%eax)
|
movl %ebx, (JB_BX*4)(%eax)
|
||||||
movl %esi, (JB_SI*4)(%eax)
|
movl %esi, (JB_SI*4)(%eax)
|
||||||
movl %edi, (JB_DI*4)(%eax)
|
movl %edi, (JB_DI*4)(%eax)
|
||||||
@ -37,13 +37,13 @@ ENTRY (__sigsetjmp)
|
|||||||
#ifdef PTR_MANGLE
|
#ifdef PTR_MANGLE
|
||||||
PTR_MANGLE (%ecx)
|
PTR_MANGLE (%ecx)
|
||||||
#endif
|
#endif
|
||||||
movl %ecx, (JB_SP*4)(%eax)
|
movl %ecx, (JB_SP*4)(%eax)
|
||||||
movl 0(%esp), %ecx /* Save PC we are returning to now. */
|
movl 0(%esp), %ecx /* Save PC we are returning to now. */
|
||||||
LIBC_PROBE (setjmp, 3, 4@%eax, -4@SIGMSK(%esp), 4@%ecx)
|
LIBC_PROBE (setjmp, 3, 4@%eax, -4@SIGMSK(%esp), 4@%ecx)
|
||||||
#ifdef PTR_MANGLE
|
#ifdef PTR_MANGLE
|
||||||
PTR_MANGLE (%ecx)
|
PTR_MANGLE (%ecx)
|
||||||
#endif
|
#endif
|
||||||
movl %ecx, (JB_PC*4)(%eax)
|
movl %ecx, (JB_PC*4)(%eax)
|
||||||
movl %ebp, (JB_BP*4)(%eax) /* Save caller's frame pointer. */
|
movl %ebp, (JB_BP*4)(%eax) /* Save caller's frame pointer. */
|
||||||
|
|
||||||
#if defined NOT_IN_libc && defined IS_IN_rtld
|
#if defined NOT_IN_libc && defined IS_IN_rtld
|
||||||
|
@ -211,9 +211,9 @@ recompute:
|
|||||||
if(q0>0) { /* rare case: chance is 1 in 12 */
|
if(q0>0) { /* rare case: chance is 1 in 12 */
|
||||||
switch(q0) {
|
switch(q0) {
|
||||||
case 1:
|
case 1:
|
||||||
iq[jz-1] &= 0x7fffff; break;
|
iq[jz-1] &= 0x7fffff; break;
|
||||||
case 2:
|
case 2:
|
||||||
iq[jz-1] &= 0x3fffff; break;
|
iq[jz-1] &= 0x3fffff; break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(ih==2) {
|
if(ih==2) {
|
||||||
|
@ -145,11 +145,11 @@ int32_t __ieee754_rem_pio2f(float x, float *y)
|
|||||||
GET_FLOAT_WORD(high,y[0]);
|
GET_FLOAT_WORD(high,y[0]);
|
||||||
i = j-((high>>23)&0xff);
|
i = j-((high>>23)&0xff);
|
||||||
if(i>25) { /* 3rd iteration need, 74 bits acc */
|
if(i>25) { /* 3rd iteration need, 74 bits acc */
|
||||||
t = r; /* will cover all possible cases */
|
t = r; /* will cover all possible cases */
|
||||||
w = fn*pio2_3;
|
w = fn*pio2_3;
|
||||||
r = t-w;
|
r = t-w;
|
||||||
w = fn*pio2_3t-((t-r)-w);
|
w = fn*pio2_3t-((t-r)-w);
|
||||||
y[0] = r-w;
|
y[0] = r-w;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -104,9 +104,9 @@ recompute:
|
|||||||
if(q0>0) { /* rare case: chance is 1 in 12 */
|
if(q0>0) { /* rare case: chance is 1 in 12 */
|
||||||
switch(q0) {
|
switch(q0) {
|
||||||
case 1:
|
case 1:
|
||||||
iq[jz-1] &= 0x7f; break;
|
iq[jz-1] &= 0x7f; break;
|
||||||
case 2:
|
case 2:
|
||||||
iq[jz-1] &= 0x3f; break;
|
iq[jz-1] &= 0x3f; break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(ih==2) {
|
if(ih==2) {
|
||||||
|
@ -215,7 +215,7 @@ __ieee754_expl (long double x)
|
|||||||
ex3_u.d = (result - ex2_u.d) - x22 * ex2_u.d;
|
ex3_u.d = (result - ex2_u.d) - x22 * ex2_u.d;
|
||||||
ex2_u.d = result;
|
ex2_u.d = result;
|
||||||
ex3_u.ieee.exponent += LDBL_MANT_DIG + 15 + IEEE854_LONG_DOUBLE_BIAS
|
ex3_u.ieee.exponent += LDBL_MANT_DIG + 15 + IEEE854_LONG_DOUBLE_BIAS
|
||||||
- ex2_u.ieee.exponent;
|
- ex2_u.ieee.exponent;
|
||||||
n_i = abs (ex3_u.d);
|
n_i = abs (ex3_u.d);
|
||||||
n_i = (n_i + 1) / 2;
|
n_i = (n_i + 1) / 2;
|
||||||
fesetenv (&oldenv);
|
fesetenv (&oldenv);
|
||||||
|
@ -69,7 +69,7 @@ __mpn_extract_long_double (mp_ptr res_ptr, mp_size_t size,
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* It is a denormal number, meaning it has no implicit leading
|
/* It is a denormal number, meaning it has no implicit leading
|
||||||
one bit, and its exponent is in fact the format minimum. */
|
one bit, and its exponent is in fact the format minimum. */
|
||||||
int cnt;
|
int cnt;
|
||||||
|
|
||||||
#if N == 2
|
#if N == 2
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
Copyright (C) 1997-2013 Free Software Foundation, Inc.
|
Copyright (C) 1997-2013 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 and
|
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997 and
|
||||||
Jakub Jelinek <jj@ultra.linux.cz>, 1999.
|
Jakub Jelinek <jj@ultra.linux.cz>, 1999.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
modify it under the terms of the GNU Lesser General Public
|
modify it under the terms of the GNU Lesser General Public
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
Copyright (C) 1997-2013 Free Software Foundation, Inc.
|
Copyright (C) 1997-2013 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 and
|
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997 and
|
||||||
Jakub Jelinek <jj@ultra.linux.cz>, 1999.
|
Jakub Jelinek <jj@ultra.linux.cz>, 1999.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
modify it under the terms of the GNU Lesser General Public
|
modify it under the terms of the GNU Lesser General Public
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
Copyright (C) 1997-2013 Free Software Foundation, Inc.
|
Copyright (C) 1997-2013 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 and
|
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997 and
|
||||||
Jakub Jelinek <jj@ultra.linux.cz>, 1999.
|
Jakub Jelinek <jj@ultra.linux.cz>, 1999.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
modify it under the terms of the GNU Lesser General Public
|
modify it under the terms of the GNU Lesser General Public
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
Copyright (C) 1997-2013 Free Software Foundation, Inc.
|
Copyright (C) 1997-2013 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 and
|
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997 and
|
||||||
Jakub Jelinek <jj@ultra.linux.cz>, 1999.
|
Jakub Jelinek <jj@ultra.linux.cz>, 1999.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
modify it under the terms of the GNU Lesser General Public
|
modify it under the terms of the GNU Lesser General Public
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
Copyright (C) 1997-2013 Free Software Foundation, Inc.
|
Copyright (C) 1997-2013 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 and
|
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997 and
|
||||||
Jakub Jelinek <jj@ultra.linux.cz>, 1999.
|
Jakub Jelinek <jj@ultra.linux.cz>, 1999.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
modify it under the terms of the GNU Lesser General Public
|
modify it under the terms of the GNU Lesser General Public
|
||||||
|
@ -43,7 +43,7 @@ double __nexttoward(double x, long double y)
|
|||||||
|
|
||||||
if(((ix>=0x7ff00000)&&((ix-0x7ff00000)|lx)!=0) || /* x is nan */
|
if(((ix>=0x7ff00000)&&((ix-0x7ff00000)|lx)!=0) || /* x is nan */
|
||||||
((iy>=0x7fff000000000000LL)&&((iy-0x7fff000000000000LL)|ly)!=0))
|
((iy>=0x7fff000000000000LL)&&((iy-0x7fff000000000000LL)|ly)!=0))
|
||||||
/* y is nan */
|
/* y is nan */
|
||||||
return x+y;
|
return x+y;
|
||||||
if((long double) x==y) return y; /* x=y, return y */
|
if((long double) x==y) return y; /* x=y, return y */
|
||||||
if((ix|lx)==0) { /* x == 0 */
|
if((ix|lx)==0) { /* x == 0 */
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
Copyright (C) 1997-2013 Free Software Foundation, Inc.
|
Copyright (C) 1997-2013 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 and
|
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997 and
|
||||||
Jakub Jelinek <jj@ultra.linux.cz>, 1999.
|
Jakub Jelinek <jj@ultra.linux.cz>, 1999.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
modify it under the terms of the GNU Lesser General Public
|
modify it under the terms of the GNU Lesser General Public
|
||||||
|
@ -223,7 +223,7 @@ __ieee754_expl (long double x)
|
|||||||
ex3_u.d = (result - ex2_u.d) - x22 * ex2_u.d;
|
ex3_u.d = (result - ex2_u.d) - x22 * ex2_u.d;
|
||||||
ex2_u.d = result;
|
ex2_u.d = result;
|
||||||
ex3_u.ieee.exponent += LDBL_MANT_DIG + 15 + IEEE854_LONG_DOUBLE_BIAS
|
ex3_u.ieee.exponent += LDBL_MANT_DIG + 15 + IEEE854_LONG_DOUBLE_BIAS
|
||||||
- ex2_u.ieee.exponent;
|
- ex2_u.ieee.exponent;
|
||||||
n_i = abs (ex3_u.d);
|
n_i = abs (ex3_u.d);
|
||||||
n_i = (n_i + 1) / 2;
|
n_i = (n_i + 1) / 2;
|
||||||
fesetenv (&oldenv);
|
fesetenv (&oldenv);
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
Copyright (C) 1997-2013 Free Software Foundation, Inc.
|
Copyright (C) 1997-2013 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 and
|
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997 and
|
||||||
Jakub Jelinek <jj@ultra.linux.cz>, 1999.
|
Jakub Jelinek <jj@ultra.linux.cz>, 1999.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
modify it under the terms of the GNU Lesser General Public
|
modify it under the terms of the GNU Lesser General Public
|
||||||
|
@ -45,7 +45,7 @@ double __nexttoward(double x, long double y)
|
|||||||
|
|
||||||
if(((ix>=0x7ff00000)&&((ix-0x7ff00000)|lx)!=0) || /* x is nan */
|
if(((ix>=0x7ff00000)&&((ix-0x7ff00000)|lx)!=0) || /* x is nan */
|
||||||
((iy>=0x7ff0000000000000LL)&&((iy-0x7ff0000000000000LL)|uly)!=0))
|
((iy>=0x7ff0000000000000LL)&&((iy-0x7ff0000000000000LL)|uly)!=0))
|
||||||
/* y is nan */
|
/* y is nan */
|
||||||
return x+y;
|
return x+y;
|
||||||
if((long double) x==y) return y; /* x=y, return y */
|
if((long double) x==y) return y; /* x=y, return y */
|
||||||
if((ix|lx)==0) { /* x == 0 */
|
if((ix|lx)==0) { /* x == 0 */
|
||||||
|
@ -61,14 +61,14 @@ long double __scalblnl (long double x, long int n)
|
|||||||
if (k > 0) { /* normal result */
|
if (k > 0) { /* normal result */
|
||||||
hx = (hx&0x800fffffffffffffULL)|(k<<52);
|
hx = (hx&0x800fffffffffffffULL)|(k<<52);
|
||||||
if ((lx & 0x7fffffffffffffffULL) == 0) { /* low part +-0 */
|
if ((lx & 0x7fffffffffffffffULL) == 0) { /* low part +-0 */
|
||||||
SET_LDOUBLE_WORDS64(x,hx,lx);
|
SET_LDOUBLE_WORDS64(x,hx,lx);
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
if (l == 0) { /* low part subnormal */
|
if (l == 0) { /* low part subnormal */
|
||||||
u.i = lx;
|
u.i = lx;
|
||||||
u.d *= two54;
|
u.d *= two54;
|
||||||
lx = u.i;
|
lx = u.i;
|
||||||
l = ((lx>>52)&0x7ff) - 54;
|
l = ((lx>>52)&0x7ff) - 54;
|
||||||
}
|
}
|
||||||
l = l + n;
|
l = l + n;
|
||||||
if (l > 0)
|
if (l > 0)
|
||||||
@ -76,10 +76,10 @@ long double __scalblnl (long double x, long int n)
|
|||||||
else if (l <= -54)
|
else if (l <= -54)
|
||||||
lx = (lx&0x8000000000000000ULL);
|
lx = (lx&0x8000000000000000ULL);
|
||||||
else {
|
else {
|
||||||
l += 54;
|
l += 54;
|
||||||
u.i = (lx&0x800fffffffffffffULL)|(l<<52);
|
u.i = (lx&0x800fffffffffffffULL)|(l<<52);
|
||||||
u.d *= twom54;
|
u.d *= twom54;
|
||||||
lx = u.i;
|
lx = u.i;
|
||||||
}
|
}
|
||||||
SET_LDOUBLE_WORDS64(x,hx,lx);
|
SET_LDOUBLE_WORDS64(x,hx,lx);
|
||||||
return x;
|
return x;
|
||||||
|
@ -61,14 +61,14 @@ long double __scalbnl (long double x, int n)
|
|||||||
if (k > 0) { /* normal result */
|
if (k > 0) { /* normal result */
|
||||||
hx = (hx&0x800fffffffffffffULL)|(k<<52);
|
hx = (hx&0x800fffffffffffffULL)|(k<<52);
|
||||||
if ((lx & 0x7fffffffffffffffULL) == 0) { /* low part +-0 */
|
if ((lx & 0x7fffffffffffffffULL) == 0) { /* low part +-0 */
|
||||||
SET_LDOUBLE_WORDS64(x,hx,lx);
|
SET_LDOUBLE_WORDS64(x,hx,lx);
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
if (l == 0) { /* low part subnormal */
|
if (l == 0) { /* low part subnormal */
|
||||||
u.i = lx;
|
u.i = lx;
|
||||||
u.d *= two54;
|
u.d *= two54;
|
||||||
lx = u.i;
|
lx = u.i;
|
||||||
l = ((lx>>52)&0x7ff) - 54;
|
l = ((lx>>52)&0x7ff) - 54;
|
||||||
}
|
}
|
||||||
l = l + n;
|
l = l + n;
|
||||||
if (l > 0)
|
if (l > 0)
|
||||||
@ -76,10 +76,10 @@ long double __scalbnl (long double x, int n)
|
|||||||
else if (l <= -54)
|
else if (l <= -54)
|
||||||
lx = (lx&0x8000000000000000ULL);
|
lx = (lx&0x8000000000000000ULL);
|
||||||
else {
|
else {
|
||||||
l += 54;
|
l += 54;
|
||||||
u.i = (lx&0x800fffffffffffffULL)|(l<<52);
|
u.i = (lx&0x800fffffffffffffULL)|(l<<52);
|
||||||
u.d *= twom54;
|
u.d *= twom54;
|
||||||
lx = u.i;
|
lx = u.i;
|
||||||
}
|
}
|
||||||
SET_LDOUBLE_WORDS64(x,hx,lx);
|
SET_LDOUBLE_WORDS64(x,hx,lx);
|
||||||
return x;
|
return x;
|
||||||
|
@ -62,7 +62,7 @@ __mpn_extract_long_double (mp_ptr res_ptr, mp_size_t size,
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* It is a denormal number, meaning it has no implicit leading
|
/* It is a denormal number, meaning it has no implicit leading
|
||||||
one bit, and its exponent is in fact the format minimum. */
|
one bit, and its exponent is in fact the format minimum. */
|
||||||
int cnt;
|
int cnt;
|
||||||
|
|
||||||
if (res_ptr[N - 1] != 0)
|
if (res_ptr[N - 1] != 0)
|
||||||
|
@ -354,16 +354,16 @@ double x,y;
|
|||||||
static const n0=0,n1=1,n2=2,n3=3;
|
static const n0=0,n1=1,n2=2,n3=3;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static const unsigned short mexp =0x7ff0, m25 =0x0190, m57 =0x0390;
|
static const unsigned short mexp =0x7ff0, m25 =0x0190, m57 =0x0390;
|
||||||
static const double zero=0.0;
|
static const double zero=0.0;
|
||||||
double hy,y1,t,t1;
|
double hy,y1,t,t1;
|
||||||
short k;
|
short k;
|
||||||
long n;
|
long n;
|
||||||
int i,e;
|
int i,e;
|
||||||
unsigned short xexp,yexp, *px =(unsigned short *) &x ,
|
unsigned short xexp,yexp, *px =(unsigned short *) &x ,
|
||||||
nx,nf, *py =(unsigned short *) &y ,
|
nx,nf, *py =(unsigned short *) &y ,
|
||||||
sign, *pt =(unsigned short *) &t ,
|
sign, *pt =(unsigned short *) &t ,
|
||||||
*pt1 =(unsigned short *) &t1 ;
|
*pt1 =(unsigned short *) &t1 ;
|
||||||
|
|
||||||
xexp = px[n0] & mexp ; /* exponent of x */
|
xexp = px[n0] & mexp ; /* exponent of x */
|
||||||
yexp = py[n0] & mexp ; /* exponent of y */
|
yexp = py[n0] & mexp ; /* exponent of y */
|
||||||
|
@ -128,7 +128,7 @@ __elf_preferred_address (struct link_map *loader, size_t maplength,
|
|||||||
_dl_loaded does not work for static binaries loading
|
_dl_loaded does not work for static binaries loading
|
||||||
e.g. libnss_*.so. */
|
e.g. libnss_*.so. */
|
||||||
if ((mapend >= high || l->l_type == lt_executable)
|
if ((mapend >= high || l->l_type == lt_executable)
|
||||||
&& high >= mapstart)
|
&& high >= mapstart)
|
||||||
high = mapstart;
|
high = mapstart;
|
||||||
else if (mapend >= low && low >= mapstart)
|
else if (mapend >= low && low >= mapstart)
|
||||||
low = mapend;
|
low = mapend;
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
#include <sysdep.h>
|
#include <sysdep.h>
|
||||||
|
|
||||||
/* mp_limb_t mpn_lshift (mp_ptr wp, mp_srcptr up, mp_size_t usize,
|
/* mp_limb_t mpn_lshift (mp_ptr wp, mp_srcptr up, mp_size_t usize,
|
||||||
unsigned int cnt) */
|
unsigned int cnt) */
|
||||||
|
|
||||||
EALIGN (__mpn_lshift, 3, 0)
|
EALIGN (__mpn_lshift, 3, 0)
|
||||||
|
|
||||||
|
@ -30,8 +30,8 @@ ENTRY(__longjmp)
|
|||||||
PTR_DEMANGLE (%g3, %g3, %g4)
|
PTR_DEMANGLE (%g3, %g3, %g4)
|
||||||
#endif
|
#endif
|
||||||
mov %o0, %g1 /* ENV in %g1 */
|
mov %o0, %g1 /* ENV in %g1 */
|
||||||
orcc %o1, %g0, %g2 /* VAL in %g2 */
|
orcc %o1, %g0, %g2 /* VAL in %g2 */
|
||||||
be,a 0f /* Branch if zero; else skip delay slot. */
|
be,a 0f /* Branch if zero; else skip delay slot. */
|
||||||
mov 1, %g2 /* Delay slot only hit if zero: VAL = 1. */
|
mov 1, %g2 /* Delay slot only hit if zero: VAL = 1. */
|
||||||
0:
|
0:
|
||||||
xor %fp, %g3, %o0
|
xor %fp, %g3, %o0
|
||||||
|
@ -36,7 +36,7 @@ int _Qp_cmp(const long double *a, const long double *b)
|
|||||||
if (r == 3 && (FP_ISSIGNAN_Q(A) || FP_ISSIGNAN_Q(B)))
|
if (r == 3 && (FP_ISSIGNAN_Q(A) || FP_ISSIGNAN_Q(B)))
|
||||||
FP_SET_EXCEPTION(FP_EX_INVALID);
|
FP_SET_EXCEPTION(FP_EX_INVALID);
|
||||||
QP_HANDLE_EXCEPTIONS(
|
QP_HANDLE_EXCEPTIONS(
|
||||||
__asm (
|
__asm (
|
||||||
" ldd [%0], %%f52\n"
|
" ldd [%0], %%f52\n"
|
||||||
" ldd [%0+8], %%f54\n"
|
" ldd [%0+8], %%f54\n"
|
||||||
" ldd [%1], %%f56\n"
|
" ldd [%1], %%f56\n"
|
||||||
|
@ -37,7 +37,7 @@ int _Qp_cmpe(const long double *a, const long double *b)
|
|||||||
if (r == 3)
|
if (r == 3)
|
||||||
FP_SET_EXCEPTION(FP_EX_INVALID);
|
FP_SET_EXCEPTION(FP_EX_INVALID);
|
||||||
QP_HANDLE_EXCEPTIONS(
|
QP_HANDLE_EXCEPTIONS(
|
||||||
__asm (
|
__asm (
|
||||||
" ldd [%0], %%f52\n"
|
" ldd [%0], %%f52\n"
|
||||||
" ldd [%0+8], %%f54\n"
|
" ldd [%0+8], %%f54\n"
|
||||||
" ldd [%1], %%f56\n"
|
" ldd [%1], %%f56\n"
|
||||||
|
@ -36,7 +36,7 @@ int _Qp_feq(const long double *a, const long double *b)
|
|||||||
FP_SET_EXCEPTION(FP_EX_INVALID);
|
FP_SET_EXCEPTION(FP_EX_INVALID);
|
||||||
|
|
||||||
QP_HANDLE_EXCEPTIONS(
|
QP_HANDLE_EXCEPTIONS(
|
||||||
__asm (
|
__asm (
|
||||||
" ldd [%0], %%f52\n"
|
" ldd [%0], %%f52\n"
|
||||||
" ldd [%0+8], %%f54\n"
|
" ldd [%0+8], %%f54\n"
|
||||||
" ldd [%1], %%f56\n"
|
" ldd [%1], %%f56\n"
|
||||||
|
@ -36,7 +36,7 @@ int _Qp_fge(const long double *a, const long double *b)
|
|||||||
FP_SET_EXCEPTION(FP_EX_INVALID);
|
FP_SET_EXCEPTION(FP_EX_INVALID);
|
||||||
|
|
||||||
QP_HANDLE_EXCEPTIONS(
|
QP_HANDLE_EXCEPTIONS(
|
||||||
__asm (
|
__asm (
|
||||||
" ldd [%0], %%f52\n"
|
" ldd [%0], %%f52\n"
|
||||||
" ldd [%0+8], %%f54\n"
|
" ldd [%0+8], %%f54\n"
|
||||||
" ldd [%1], %%f56\n"
|
" ldd [%1], %%f56\n"
|
||||||
|
@ -36,7 +36,7 @@ int _Qp_fgt(const long double *a, const long double *b)
|
|||||||
FP_SET_EXCEPTION(FP_EX_INVALID);
|
FP_SET_EXCEPTION(FP_EX_INVALID);
|
||||||
|
|
||||||
QP_HANDLE_EXCEPTIONS(
|
QP_HANDLE_EXCEPTIONS(
|
||||||
__asm (
|
__asm (
|
||||||
" ldd [%0], %%f52\n"
|
" ldd [%0], %%f52\n"
|
||||||
" ldd [%0+8], %%f54\n"
|
" ldd [%0+8], %%f54\n"
|
||||||
" ldd [%1], %%f56\n"
|
" ldd [%1], %%f56\n"
|
||||||
|
@ -36,7 +36,7 @@ int _Qp_fle(const long double *a, const long double *b)
|
|||||||
FP_SET_EXCEPTION(FP_EX_INVALID);
|
FP_SET_EXCEPTION(FP_EX_INVALID);
|
||||||
|
|
||||||
QP_HANDLE_EXCEPTIONS(
|
QP_HANDLE_EXCEPTIONS(
|
||||||
__asm (
|
__asm (
|
||||||
" ldd [%0], %%f52\n"
|
" ldd [%0], %%f52\n"
|
||||||
" ldd [%0+8], %%f54\n"
|
" ldd [%0+8], %%f54\n"
|
||||||
" ldd [%1], %%f56\n"
|
" ldd [%1], %%f56\n"
|
||||||
|
@ -36,7 +36,7 @@ int _Qp_flt(const long double *a, const long double *b)
|
|||||||
FP_SET_EXCEPTION(FP_EX_INVALID);
|
FP_SET_EXCEPTION(FP_EX_INVALID);
|
||||||
|
|
||||||
QP_HANDLE_EXCEPTIONS(
|
QP_HANDLE_EXCEPTIONS(
|
||||||
__asm (
|
__asm (
|
||||||
" ldd [%0], %%f52\n"
|
" ldd [%0], %%f52\n"
|
||||||
" ldd [%0+8], %%f54\n"
|
" ldd [%0+8], %%f54\n"
|
||||||
" ldd [%1], %%f56\n"
|
" ldd [%1], %%f56\n"
|
||||||
|
@ -36,7 +36,7 @@ int _Qp_fne(const long double *a, const long double *b)
|
|||||||
FP_SET_EXCEPTION(FP_EX_INVALID);
|
FP_SET_EXCEPTION(FP_EX_INVALID);
|
||||||
|
|
||||||
QP_HANDLE_EXCEPTIONS(
|
QP_HANDLE_EXCEPTIONS(
|
||||||
__asm (
|
__asm (
|
||||||
" ldd [%0], %%f52\n"
|
" ldd [%0], %%f52\n"
|
||||||
" ldd [%0+8], %%f54\n"
|
" ldd [%0+8], %%f54\n"
|
||||||
" ldd [%1], %%f56\n"
|
" ldd [%1], %%f56\n"
|
||||||
|
@ -36,8 +36,8 @@ void _Qp_mul(long double *c, const long double *a, const long double *b)
|
|||||||
FP_MUL_Q(C, A, B);
|
FP_MUL_Q(C, A, B);
|
||||||
FP_PACK_QP(c, C);
|
FP_PACK_QP(c, C);
|
||||||
QP_HANDLE_EXCEPTIONS(
|
QP_HANDLE_EXCEPTIONS(
|
||||||
_FPU_SETCW(_fcw);
|
_FPU_SETCW(_fcw);
|
||||||
__asm (
|
__asm (
|
||||||
" ldd [%1], %%f52\n"
|
" ldd [%1], %%f52\n"
|
||||||
" ldd [%1+8], %%f54\n"
|
" ldd [%1+8], %%f54\n"
|
||||||
" ldd [%2], %%f56\n"
|
" ldd [%2], %%f56\n"
|
||||||
|
@ -33,8 +33,8 @@ int _Qp_qtoi(const long double *a)
|
|||||||
FP_UNPACK_RAW_QP(A, a);
|
FP_UNPACK_RAW_QP(A, a);
|
||||||
FP_TO_INT_Q(r, A, 32, 1);
|
FP_TO_INT_Q(r, A, 32, 1);
|
||||||
QP_HANDLE_EXCEPTIONS(
|
QP_HANDLE_EXCEPTIONS(
|
||||||
int rx;
|
int rx;
|
||||||
__asm (
|
__asm (
|
||||||
" ldd [%1], %%f52\n"
|
" ldd [%1], %%f52\n"
|
||||||
" ldd [%1+8], %%f54\n"
|
" ldd [%1+8], %%f54\n"
|
||||||
" fqtoi %%f52, %%f31\n"
|
" fqtoi %%f52, %%f31\n"
|
||||||
|
@ -33,8 +33,8 @@ unsigned int _Qp_qtoui(const long double *a)
|
|||||||
FP_UNPACK_RAW_QP(A, a);
|
FP_UNPACK_RAW_QP(A, a);
|
||||||
FP_TO_INT_Q(r, A, 32, -1);
|
FP_TO_INT_Q(r, A, 32, -1);
|
||||||
QP_HANDLE_EXCEPTIONS(
|
QP_HANDLE_EXCEPTIONS(
|
||||||
int rx;
|
int rx;
|
||||||
__asm (
|
__asm (
|
||||||
" ldd [%1], %%f52\n"
|
" ldd [%1], %%f52\n"
|
||||||
" ldd [%1+8], %%f54\n"
|
" ldd [%1+8], %%f54\n"
|
||||||
" fqtoi %%f52, %%f31\n"
|
" fqtoi %%f52, %%f31\n"
|
||||||
|
@ -34,7 +34,7 @@ unsigned long _Qp_qtoux(const long double *a)
|
|||||||
FP_TO_INT_Q(r, A, 64, -1);
|
FP_TO_INT_Q(r, A, 64, -1);
|
||||||
QP_HANDLE_EXCEPTIONS(
|
QP_HANDLE_EXCEPTIONS(
|
||||||
unsigned long rx;
|
unsigned long rx;
|
||||||
__asm (
|
__asm (
|
||||||
" ldd [%1], %%f52\n"
|
" ldd [%1], %%f52\n"
|
||||||
" ldd [%1+8], %%f54\n"
|
" ldd [%1+8], %%f54\n"
|
||||||
" fqtox %%f52, %%f60\n"
|
" fqtox %%f52, %%f60\n"
|
||||||
|
@ -34,7 +34,7 @@ long _Qp_qtox(const long double *a)
|
|||||||
FP_TO_INT_Q(r, A, 64, 1);
|
FP_TO_INT_Q(r, A, 64, 1);
|
||||||
QP_HANDLE_EXCEPTIONS(
|
QP_HANDLE_EXCEPTIONS(
|
||||||
long rx;
|
long rx;
|
||||||
__asm (
|
__asm (
|
||||||
" ldd [%1], %%f52\n"
|
" ldd [%1], %%f52\n"
|
||||||
" ldd [%1+8], %%f54\n"
|
" ldd [%1+8], %%f54\n"
|
||||||
" fqtox %%f52, %%f60\n"
|
" fqtox %%f52, %%f60\n"
|
||||||
|
@ -45,7 +45,7 @@ lutimes (const char *file, const struct timeval tvp[2])
|
|||||||
}
|
}
|
||||||
|
|
||||||
return INLINE_SYSCALL (utimensat, 4, AT_FDCWD, file, tvp ? ts : NULL,
|
return INLINE_SYSCALL (utimensat, 4, AT_FDCWD, file, tvp ? ts : NULL,
|
||||||
AT_SYMLINK_NOFOLLOW);
|
AT_SYMLINK_NOFOLLOW);
|
||||||
#else
|
#else
|
||||||
__set_errno (ENOSYS);
|
__set_errno (ENOSYS);
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
all the freaky stuff we have to do to make the call useful. */
|
all the freaky stuff we have to do to make the call useful. */
|
||||||
|
|
||||||
/* int [r3] clone(int (*fn)(void *arg) [r3], void *child_stack [r4],
|
/* int [r3] clone(int (*fn)(void *arg) [r3], void *child_stack [r4],
|
||||||
int flags [r5], void *arg [r6], void *parent_tid [r7],
|
int flags [r5], void *arg [r6], void *parent_tid [r7],
|
||||||
void *tls [r8], void *child_tid [r9]); */
|
void *tls [r8], void *child_tid [r9]); */
|
||||||
|
|
||||||
ENTRY (__clone)
|
ENTRY (__clone)
|
||||||
|
Reference in New Issue
Block a user