aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64
diff options
context:
space:
mode:
authorMark Murray <markm@FreeBSD.org>2002-07-15 13:27:43 +0000
committerMark Murray <markm@FreeBSD.org>2002-07-15 13:27:43 +0000
commit7e622d3c84bbed224e6bb483ef0ac3e9dbc6ebac (patch)
tree6d2e7ee8509fad6f1c327be6f9b0a8e4205fb1d0 /sys/amd64
parentbbcfaa6aa0c0745d27875ea5a8fa4259ef3233e5 (diff)
Notes
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/include/cpufunc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/include/cpufunc.h b/sys/amd64/include/cpufunc.h
index 0896659c864e..1dacf54aed51 100644
--- a/sys/amd64/include/cpufunc.h
+++ b/sys/amd64/include/cpufunc.h
@@ -117,7 +117,7 @@ ffs(int mask)
* broken in gcc-2.4.5 and slower but working in gcc-2.5 and later
* versions.
*/
- return (mask == 0 ? mask : bsfl((u_int)mask) + 1);
+ return (mask == 0 ? mask : (int)bsfl((u_int)mask) + 1);
}
#define HAVE_INLINE_FLS
@@ -125,7 +125,7 @@ ffs(int mask)
static __inline int
fls(int mask)
{
- return (mask == 0 ? mask : bsrl((u_int)mask) + 1);
+ return (mask == 0 ? mask : (int)bsrl((u_int)mask) + 1);
}
#if __GNUC__ < 2