Files
freebsd-src/lib
Mark Johnston 2ba20004ef libc: Reimplement the *rand48 family of functions
Rather than implementing the recurrence using 3 16-bit integers, as was
done in _dorand48() before this patch, provide an equivalent
implementation using 64-bit integers.

For drand48() and erand48(), replace the use of ldexp() with
bit-twiddling assuming IEEE 754 double-precision float layout.

This implementation is significantly faster and requires less code,
while producing identical outputs on supported platforms.

While here, add a STANDARDS section to rand48.3.

Obtained from:	https://github.com/apple-oss-distributions/libc
MFC after:	3 weeks
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D52429
2025-10-06 19:20:39 +00:00
..
2025-09-04 16:06:47 -07:00
2025-04-28 10:01:30 -06:00
2024-10-14 10:26:17 -07:00
2025-08-08 18:08:21 +02:00
2024-10-14 10:26:17 -07:00
2025-01-01 15:11:06 -06:00
2025-09-28 21:28:12 -07:00
2024-10-14 10:26:17 -07:00
2025-10-02 02:37:35 +01:00
2024-10-14 10:26:17 -07:00
2025-10-03 19:46:55 +02:00
2025-08-08 13:27:26 -05:00
2024-10-08 16:13:39 -03:00
2024-10-14 10:26:17 -07:00
2025-07-17 16:36:17 -07:00
2024-10-14 10:26:17 -07:00
2025-08-06 12:31:24 +01:00
2024-11-12 12:11:51 -05:00
2025-09-07 22:05:17 +02:00
2025-09-29 22:53:34 +01:00
2025-09-30 09:14:05 +01:00
2024-10-14 10:26:17 -07:00
2025-09-28 11:56:52 +02:00