From f1f8ec084a4848342229b45f81844372a42bb6b3 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Wed, 4 Jan 2006 22:32:47 +0000 Subject: Switch to the C version of random() on m68k platforms. It is almost as fast as the assembly version on 0[234]0, but *fifteen* times faster than it on 68060 systems, since it uses a form of muls.l which has to be emulated. And since we use random() for statclock variance, this means we were gratuitously doing an average of 100 emulation traps per second. ok deraadt@ millert@ --- sys/lib/libkern/arch/m68k/Makefile.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/lib/libkern/arch') diff --git a/sys/lib/libkern/arch/m68k/Makefile.inc b/sys/lib/libkern/arch/m68k/Makefile.inc index fd44dc81ac6..fe75454e089 100644 --- a/sys/lib/libkern/arch/m68k/Makefile.inc +++ b/sys/lib/libkern/arch/m68k/Makefile.inc @@ -1,8 +1,8 @@ -# $OpenBSD: Makefile.inc,v 1.8 2003/06/01 17:00:30 deraadt Exp $ +# $OpenBSD: Makefile.inc,v 1.9 2006/01/04 22:32:46 miod Exp $ # $NetBSD: Makefile.inc,v 1.7 1996/04/18 01:53:04 cgd Exp $ SRCS+= __main.c imax.c imin.c lmax.c lmin.c max.c min.c ulmax.c ulmin.c \ - memchr.c memcmp.S memset.S \ + memchr.c memcmp.S memset.S random.c \ bcmp.S bzero.S ffs.S strcmp.S strlcat.c strlcpy.c \ strlen.S strncmp.S \ strncpy.S htonl.S htons.S ntohl.S ntohs.S scanc.S skpc.S locc.S \ -- cgit v1.2.3