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 DIV_ROUND_DOWN_ULL
details: https://anonhg.NetBSD.org/src/rev/610a63be17cc
branches: trunk
changeset: 1027905:610a63be17cc
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 01:14:43 2021 +0000
description:
DIV_ROUND_DOWN_ULL
diffstat:
sys/external/bsd/common/include/linux/kernel.h | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (18 lines):
diff -r 76050a78ca6e -r 610a63be17cc sys/external/bsd/common/include/linux/kernel.h
--- a/sys/external/bsd/common/include/linux/kernel.h Sun Dec 19 01:14:36 2021 +0000
+++ b/sys/external/bsd/common/include/linux/kernel.h Sun Dec 19 01:14:43 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kernel.h,v 1.32 2021/12/19 00:49:08 riastradh Exp $ */
+/* $NetBSD: kernel.h,v 1.33 2021/12/19 01:14:43 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -114,6 +114,8 @@
#define DIV_ROUND_UP(X, N) (((X) + (N) - 1) / (N))
#define DIV_ROUND_UP_ULL(X, N) DIV_ROUND_UP((unsigned long long)(X), (N))
+#define DIV_ROUND_DOWN_ULL(X,N) ((unsigned long long)(X) / (N))
+
/*
* Rounding to powers of two -- carefully avoiding multiple evaluation
* of arguments and pitfalls with C integer arithmetic rules.
Home |
Main Index |
Thread Index |
Old Index