mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Update.
2000-08-22 Ulrich Drepper <drepper@redhat.com> * stdlib/random_r.c: Cleanups. * stdlib/tst-random.c: New file. * stdlib/Makefile (tests): Add tst-random. Patches by Michael Fischer <fischer-michael@cs.yale.edu>. * sysdeps/unix/sysv/linux/s390/getmsg.c: Remove. * sysdeps/unix/sysv/linux/s390/getpmsg.c: Remove. * sysdeps/unix/sysv/linux/s390/putmsg.c: Remove. * sysdeps/unix/sysv/linux/s390/putpmsg.c: Remove.
This commit is contained in:
15
ChangeLog
15
ChangeLog
@ -1,9 +1,16 @@
|
|||||||
|
2000-08-22 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* stdlib/random_r.c: Cleanups.
|
||||||
|
* stdlib/tst-random.c: New file.
|
||||||
|
* stdlib/Makefile (tests): Add tst-random.
|
||||||
|
Patches by Michael Fischer <fischer-michael@cs.yale.edu>.
|
||||||
|
|
||||||
2000-08-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
|
2000-08-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/s390/getmsg.c: Remove.
|
* sysdeps/unix/sysv/linux/s390/getmsg.c: Remove.
|
||||||
* sysdeps/unix/sysv/linux/s390/getpmsg.c: Remove.
|
* sysdeps/unix/sysv/linux/s390/getpmsg.c: Remove.
|
||||||
* sysdeps/unix/sysv/linux/s390/putmsg.c: Remove.
|
* sysdeps/unix/sysv/linux/s390/putmsg.c: Remove.
|
||||||
* sysdeps/unix/sysv/linux/s390/putpmsg.c: Remove.
|
* sysdeps/unix/sysv/linux/s390/putpmsg.c: Remove.
|
||||||
|
|
||||||
2000-08-22 Jakub Jelinek <jakub@redhat.com>
|
2000-08-22 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ routines := \
|
|||||||
distribute := exit.h grouping.h abort-instr.h isomac.c
|
distribute := exit.h grouping.h abort-instr.h isomac.c
|
||||||
tests := tst-strtol tst-strtod testmb testrand testsort testdiv \
|
tests := tst-strtol tst-strtod testmb testrand testsort testdiv \
|
||||||
test-canon test-canon2 tst-strtoll tst-environ \
|
test-canon test-canon2 tst-strtoll tst-environ \
|
||||||
tst-xpg-basename
|
tst-xpg-basename tst-random
|
||||||
|
|
||||||
|
|
||||||
# Several mpn functions from GNU MP are used by the strtod function.
|
# Several mpn functions from GNU MP are used by the strtod function.
|
||||||
|
@ -268,7 +268,7 @@ __setstate_r (arg_state, buf)
|
|||||||
char *arg_state;
|
char *arg_state;
|
||||||
struct random_data *buf;
|
struct random_data *buf;
|
||||||
{
|
{
|
||||||
int32_t *new_state = (int32_t *) arg_state;
|
int32_t *new_state = 1 + (int32_t *) arg_state;
|
||||||
int type;
|
int type;
|
||||||
int old_type;
|
int old_type;
|
||||||
int32_t *old_state;
|
int32_t *old_state;
|
||||||
@ -285,7 +285,7 @@ __setstate_r (arg_state, buf)
|
|||||||
else
|
else
|
||||||
old_state[-1] = (MAX_TYPES * (buf->rptr - old_state)) + old_type;
|
old_state[-1] = (MAX_TYPES * (buf->rptr - old_state)) + old_type;
|
||||||
|
|
||||||
type = new_state[0] % MAX_TYPES;
|
type = new_state[-1] % MAX_TYPES;
|
||||||
if (type < TYPE_0 || type > TYPE_4)
|
if (type < TYPE_0 || type > TYPE_4)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
@ -295,13 +295,13 @@ __setstate_r (arg_state, buf)
|
|||||||
|
|
||||||
if (type != TYPE_0)
|
if (type != TYPE_0)
|
||||||
{
|
{
|
||||||
int rear = new_state[0] / MAX_TYPES;
|
int rear = new_state[-1] / MAX_TYPES;
|
||||||
buf->rptr = &new_state[1 + rear];
|
buf->rptr = &new_state[rear];
|
||||||
buf->fptr = &new_state[1 + (rear + separation) % degree];
|
buf->fptr = &new_state[(rear + separation) % degree];
|
||||||
}
|
}
|
||||||
buf->state = &new_state[1];
|
buf->state = new_state;
|
||||||
/* Set end_ptr too. */
|
/* Set end_ptr too. */
|
||||||
buf->end_ptr = &new_state[1 + degree];
|
buf->end_ptr = &new_state[degree];
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user