Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/common/include/linux ALIGN_DOWN seems to be...



details:   https://anonhg.NetBSD.org/src/rev/fa23f969f11d
branches:  trunk
changeset: 1028381:fa23f969f11d
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 10:51:17 2021 +0000

description:
ALIGN_DOWN seems to be an alias for round_down.

diffstat:

 sys/external/bsd/common/include/linux/kernel.h |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 9494a34b33c4 -r fa23f969f11d sys/external/bsd/common/include/linux/kernel.h
--- a/sys/external/bsd/common/include/linux/kernel.h    Sun Dec 19 10:51:09 2021 +0000
+++ b/sys/external/bsd/common/include/linux/kernel.h    Sun Dec 19 10:51:17 2021 +0000
@@ -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



Home | Main Index | Thread Index | Old Index