Skip to contentSkip to conversation

RT: Add __HAVE_ARCH_DIV_LL_X_L_REM

PATCH New Daniel Walker 1 participant 1 message Sep 27, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 RT: Add __HAVE_ARCH_DIV_LL_X_L_REM

Create __HAVE_ARCH_DIV_LL_X_L_REM instead of using div_ll_x_l_rem directly.

include/asm-arm/div64.h +1 -0
Index: 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,
include/linux/sc_math.h +1 -1
Index: 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,