Subject: CVS commit: src/lib/libc/stdlib
To: None <source-changes@NetBSD.org>
From: Matthias Drochner <drochner@netbsd.org>
List: source-changes
Date: 03/22/2006 21:06:03
Module Name: src
Committed By: drochner
Date: Wed Mar 22 21:06:03 UTC 2006
Added Files:
src/lib/libc/stdlib: erand48_ieee754.c
Log Message:
Rewrite erand48() to put the random bits into the mantissa by simple
bitshifts instead of calling ldexp() three times.
(for ieee doubles only -- vax can't use it, so the old version
needs to stay around)
This removes the dependency on ldexp() which also didn't participate in
the usual __RENAME game, thus lead to confusion.
In addition, this version is almost 3 times as fast for me.
To generate a diff of this commit:
cvs rdiff -r0 -r1.1 src/lib/libc/stdlib/erand48_ieee754.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.