Module Name: src
Committed By: riastradh
Date: Sun Dec 19 10:51:17 UTC 2021
Modified Files:
src/sys/external/bsd/common/include/linux: kernel.h
Log Message:
ALIGN_DOWN seems to be an alias for round_down.
To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/sys/external/bsd/common/include/linux/kernel.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/external/bsd/common/include/linux/kernel.h
diff -u src/sys/external/bsd/common/include/linux/kernel.h:1.38 src/sys/external/bsd/common/include/linux/kernel.h:1.39
--- src/sys/external/bsd/common/include/linux/kernel.h:1.38 Sun Dec 19 01:41:21 2021
+++ src/sys/external/bsd/common/include/linux/kernel.h Sun Dec 19 10:51:17 2021
@@ -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