summaryrefslogtreecommitdiffstats
path: root/sys/lib/libkern/softfloat-macros.h
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2007-12-29 17:43:12 +0000
committermiod <miod@openbsd.org>2007-12-29 17:43:12 +0000
commit82d799bfbd3d2e942d4b4377237c9952eb557247 (patch)
tree89183b5fae0a97a009a3a1ea1249b0fafc69f039 /sys/lib/libkern/softfloat-macros.h
parentHad I known we had a kernel version of John Hauser's SoftFloat code, I would (diff)
downloadwireguard-openbsd-82d799bfbd3d2e942d4b4377237c9952eb557247.tar.xz
wireguard-openbsd-82d799bfbd3d2e942d4b4377237c9952eb557247.zip
Override SoftFloat's countLeadingZeros32() with a faster, ff1-based, version
on m88k.
Diffstat (limited to 'sys/lib/libkern/softfloat-macros.h')
-rw-r--r--sys/lib/libkern/softfloat-macros.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/lib/libkern/softfloat-macros.h b/sys/lib/libkern/softfloat-macros.h
index d7f6e55fd15..21d5603ec77 100644
--- a/sys/lib/libkern/softfloat-macros.h
+++ b/sys/lib/libkern/softfloat-macros.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: softfloat-macros.h,v 1.2 2007/12/29 16:59:16 miod Exp $ */
+/* $OpenBSD: softfloat-macros.h,v 1.3 2007/12/29 17:43:14 miod Exp $ */
/* $NetBSD: softfloat-macros.h,v 1.1 2001/04/26 03:10:47 ross Exp $ */
/*
@@ -654,6 +654,7 @@ Returns the number of leading 0 bits before the most-significant 1 bit of
`a'. If `a' is zero, 32 is returned.
-------------------------------------------------------------------------------
*/
+#ifndef SOFTFLOAT_MD_CLZ
static int8 countLeadingZeros32( bits32 a )
{
static const int8 countLeadingZerosHigh[] = {
@@ -689,6 +690,7 @@ static int8 countLeadingZeros32( bits32 a )
return shiftCount;
}
+#endif
/*
-------------------------------------------------------------------------------