[PATCH] [7/15] Move internal macros to numaint.h

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

 



No need to pollute the numa.h namespace
---
 numa.h    |    5 -----
 numaint.h |    5 +++++
 2 files changed, 5 insertions(+), 5 deletions(-)

Index: numactl-2.0.0/numa.h
===================================================================
--- numactl-2.0.0.orig/numa.h
+++ numactl-2.0.0/numa.h
@@ -43,11 +43,6 @@ struct bitmask {
 	unsigned long *maskp;
 };
 
-#define howmany(x,y) (((x)+((y)-1))/(y))
-#define bitsperlong (8 * sizeof(unsigned long))
-#define longsperbits(n) howmany(n, bitsperlong)
-#define bytesperbits(x) ((x+7)/8)
-
 /* operations on struct bitmask */
 int numa_bitmask_isbitset(const struct bitmask *, unsigned int);
 struct bitmask *numa_bitmask_setall(struct bitmask *);
Index: numactl-2.0.0/numaint.h
===================================================================
--- numactl-2.0.0.orig/numaint.h
+++ numactl-2.0.0/numaint.h
@@ -39,3 +39,8 @@ enum numa_warn { 
 	W_distance,
 	W_memory,
 }; 
+
+#define howmany(x,y) (((x)+((y)-1))/(y))
+#define bitsperlong (8 * sizeof(unsigned long))
+#define longsperbits(n) howmany(n, bitsperlong)
+#define bytesperbits(x) ((x+7)/8)
--
To unsubscribe from this list: send the line "unsubscribe linux-numa" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]     [Devices]

  Powered by Linux