diff options
author | Ulrich Drepper <drepper@redhat.com> | 1997-04-21 14:50:33 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1997-04-21 14:50:33 +0000 |
commit | 47f13fd4ba484366bedadfc41b12b17a5c7c56d6 (patch) | |
tree | 1408bbf869a2c6887e354f82181abdd2afbc15a5 /stdlib/lcong48_r.c | |
parent | b4012b7542183a57cd92514e2359b8110609e52a (diff) | |
download | glibc-47f13fd4ba484366bedadfc41b12b17a5c7c56d6.zip glibc-47f13fd4ba484366bedadfc41b12b17a5c7c56d6.tar.gz glibc-47f13fd4ba484366bedadfc41b12b17a5c7c56d6.tar.bz2 |
Update.
1997-04-21 16:45 Ulrich Drepper <drepper@cygnus.com>
* stdlib/drand48.c: Cleanup namespace.
* stdlib/drand48_r.c: Cleanup namespace.
* stdlib/erand48.c: Cleanup namespace.
* stdlib/erand48_r.c: Cleanup namespace.
* stdlib/jrand48.c: Cleanup namespace.
* stdlib/jrand48_r.c: Cleanup namespace.
* stdlib/lrand48.c: Cleanup namespace.
* stdlib/lrand48_r.c: Cleanup namespace.
* stdlib/mrand48.c: Cleanup namespace.
* stdlib/mrand48_r.c: Cleanup namespace.
* stdlib/nrand48.c: Cleanup namespace.
* stdlib/nrand48_r.c: Cleanup namespace.
* stdlib/lcong48.c: Cleanup namespace.
* stdlib/lcong48_r.c: Cleanup namespace.
* stdlib/srand48.c: Cleanup namespace.
* stdlib/srand48_r.c: Cleanup namespace.
* stdlib/seed48.c: Cleanup namespace.
* stdlib/seed48_r.c: Cleanup namespace.
* stdlib/stdlib.h: Provide new prototypes.
Diffstat (limited to 'stdlib/lcong48_r.c')
-rw-r--r-- | stdlib/lcong48_r.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/stdlib/lcong48_r.c b/stdlib/lcong48_r.c index 037fd49..c7baa38 100644 --- a/stdlib/lcong48_r.c +++ b/stdlib/lcong48_r.c @@ -21,15 +21,26 @@ #include <string.h> int -lcong48_r (param, buffer) +__lcong48_r (param, buffer) unsigned short int param[7]; struct drand48_data *buffer; { /* Store the given values. */ +#if USHRT_MAX == 0xffffU memcpy (buffer->X, ¶m[0], sizeof (buffer->X)); memcpy (buffer->a, ¶m[3], sizeof (buffer->a)); +#else + buffer->X[2] = (param[2] << 16) | param[1]; + buffer->X[1] = param[0] << 16; + buffer->X[0] = 0; + + buffer->a[2] = (param[5] << 16) | param[4]; + buffer->a[1] = param[3] << 16; + buffer->a[0] = 0; +#endif buffer->c = param[6]; buffer->init = 1; return 0; } +weak_alias (__lcong48_r, lcong48_r) |