summaryrefslogtreecommitdiff
path: root/sys/external/bsd/common/include/linux
diff options
context:
space:
mode:
authorriastradh <riastradh@NetBSD.org>2021-12-19 10:51:17 +0000
committerriastradh <riastradh@NetBSD.org>2021-12-19 10:51:17 +0000
commit8c40fa2f1276428bfdfe6cbada593342bf81d38b (patch)
treebe4ebee414037a42e09f0e72cec14dea2e21df7b /sys/external/bsd/common/include/linux
parent1dfa724a9cc55efbec5475af168ebf0769d95684 (diff)
ALIGN_DOWN seems to be an alias for round_down.
Diffstat (limited to 'sys/external/bsd/common/include/linux')
-rw-r--r--sys/external/bsd/common/include/linux/kernel.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/external/bsd/common/include/linux/kernel.h b/sys/external/bsd/common/include/linux/kernel.h
index 08972227a61..b309a7e832d 100644
--- a/sys/external/bsd/common/include/linux/kernel.h
+++ b/sys/external/bsd/common/include/linux/kernel.h
@@ -1,4 +1,4 @@
-/* $NetBSD: kernel.h,v 1.38 2021/12/19 01:41:21 riastradh Exp $ */
+/* $NetBSD: kernel.h,v 1.39 2021/12/19 10:51:17 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -117,6 +117,8 @@
#define IS_ALIGNED(X, N) (((X) & ((N) - 1)) == 0)
+#define ALIGN_DOWN(X, N) round_down(X, N)
+
/*
* These select 32-bit halves of what may be 32- or 64-bit quantities,
* for which straight 32-bit shifts may be undefined behaviour (and do