Module Name: src Committed By: riastradh Date: Sun Dec 19 01:14:43 UTC 2021
Modified Files: src/sys/external/bsd/common/include/linux: kernel.h Log Message: DIV_ROUND_DOWN_ULL To generate a diff of this commit: cvs rdiff -u -r1.32 -r1.33 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.32 src/sys/external/bsd/common/include/linux/kernel.h:1.33 --- src/sys/external/bsd/common/include/linux/kernel.h:1.32 Sun Dec 19 00:49:08 2021 +++ src/sys/external/bsd/common/include/linux/kernel.h Sun Dec 19 01:14:43 2021 @@ -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.