lkml.org 
[lkml]   [2005]   [Sep]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH] RT: Add __HAVE_ARCH_DIV_LL_X_L_REM
From
Date

Create __HAVE_ARCH_DIV_LL_X_L_REM instead of using div_ll_x_l_rem directly.

Signed-Off-By: Daniel Walker <dwalker@mvista.com>

Index: linux-2.6.13/include/asm-arm/div64.h
===================================================================
--- linux-2.6.13.orig/include/asm-arm/div64.h
+++ linux-2.6.13/include/asm-arm/div64.h
@@ -53,6 +53,7 @@
*/
#define div_long_long_rem(a,b,c) div_ll_X_l_rem(a,b,c)

+#define __HAVE_ARCH_DIV_LL_X_L_REM
/* x = divs / div; *rem = divs % div; */
static inline unsigned long div_ll_X_l_rem(unsigned long long divs,
unsigned long div,
Index: linux-2.6.13/include/linux/sc_math.h
===================================================================
--- linux-2.6.13.orig/include/linux/sc_math.h
+++ linux-2.6.13/include/linux/sc_math.h
@@ -141,7 +141,7 @@ static inline long mpy_sc32(long a, long
})
#endif

-#if !defined(div_ll_X_l_rem) && !defined(CONFIG_X86)
+#if !defined(__HAVE_ARCH_DIV_LL_X_L_REM) && !defined(CONFIG_X86)
/* x = divs / div; *rem = divs % div; */
static inline unsigned long div_ll_X_l_rem(unsigned long long divs,
unsigned long div,

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-09-27 21:10    [W:0.026 / U:0.336 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site