mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Daniel Walker <dwalker@mvista.com>
To: mingo@elte.hu
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] RT: Add __HAVE_ARCH_DIV_LL_X_L_REM
Date: Tue, 27 Sep 2005 12:07:29 -0700	[thread overview]
Message-ID: <1127848052.4004.36.camel@dhcp153.mvista.com> (raw)


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,



                 reply	other threads:[~2005-09-27 19:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1127848052.4004.36.camel@dhcp153.mvista.com \
    --to=dwalker@mvista.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®