summaryrefslogtreecommitdiffstats
path: root/sys/lib/libkern/arch
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2006-01-04 22:32:43 +0000
committermiod <miod@openbsd.org>2006-01-04 22:32:43 +0000
commitc1a7aaeeb4cb48594d63aed82d7969e082905a2f (patch)
tree5b7b977a7906dce849af42b122925d63f1000e4d /sys/lib/libkern/arch
parentReturn from interrupt handler after chip init(reset). (diff)
downloadwireguard-openbsd-c1a7aaeeb4cb48594d63aed82d7969e082905a2f.tar.xz
wireguard-openbsd-c1a7aaeeb4cb48594d63aed82d7969e082905a2f.zip
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@
Diffstat (limited to 'sys/lib/libkern/arch')
-rw-r--r--sys/lib/libkern/arch/m68k/Makefile.inc4
1 files changed, 2 insertions, 2 deletions
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 \