[PATCH 3/6] include/linux/a.out.h: use generic round_up_pow2() macro

2005-04-07 Thread Nick Wilson
From: Nick Wilson <[EMAIL PROTECTED]>

Use the generic round_up_pow2() instead of a custom rounding method.

Signed-off-by: Nick Wilson <[EMAIL PROTECTED]>
---


 a.out.h |2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

Index: linux/include/linux/a.out.h
===
--- linux.orig/include/linux/a.out.h2005-04-07 15:37:22.0 -0700
+++ linux/include/linux/a.out.h 2005-04-07 15:45:34.0 -0700
@@ -138,7 +138,7 @@ enum machine_type {
 #endif
 #endif
 
-#define _N_SEGMENT_ROUND(x) (((x) + SEGMENT_SIZE - 1) & ~(SEGMENT_SIZE - 1))
+#define _N_SEGMENT_ROUND(x) round_up_pow2(x, SEGMENT_SIZE)
 
 #define _N_TXTENDADDR(x) (N_TXTADDR(x)+(x).a_text)
 
_
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 3/6] include/linux/a.out.h: use generic round_up_pow2() macro

2005-04-07 Thread Nick Wilson
From: Nick Wilson [EMAIL PROTECTED]

Use the generic round_up_pow2() instead of a custom rounding method.

Signed-off-by: Nick Wilson [EMAIL PROTECTED]
---


 a.out.h |2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

Index: linux/include/linux/a.out.h
===
--- linux.orig/include/linux/a.out.h2005-04-07 15:37:22.0 -0700
+++ linux/include/linux/a.out.h 2005-04-07 15:45:34.0 -0700
@@ -138,7 +138,7 @@ enum machine_type {
 #endif
 #endif
 
-#define _N_SEGMENT_ROUND(x) (((x) + SEGMENT_SIZE - 1)  ~(SEGMENT_SIZE - 1))
+#define _N_SEGMENT_ROUND(x) round_up_pow2(x, SEGMENT_SIZE)
 
 #define _N_TXTENDADDR(x) (N_TXTADDR(x)+(x).a_text)
 
_
-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/