From: Bastian Blank <waldi@debian.org>
To: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org
Subject: [PATCH 4/5] libgcc: Disable usage of special do_div version
Date: Fri, 3 Apr 2009 17:42:01 +0200 [thread overview]
Message-ID: <20090403154201.GD7200@wavehammer.waldi.eu.org> (raw)
In-Reply-To: <20090403153941.GA7045@wavehammer.waldi.eu.org>
gcc takes care of large div and mod operations and redirects them into
the libgcc. There is no need to do it by hand in this case.
Signed-off-by: Bastian Blank <waldi@debian.org>
---
include/asm-generic/div64.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/asm-generic/div64.h b/include/asm-generic/div64.h
index 8f4e319..45f618d 100644
--- a/include/asm-generic/div64.h
+++ b/include/asm-generic/div64.h
@@ -20,7 +20,7 @@
#include <linux/types.h>
#include <linux/compiler.h>
-#if BITS_PER_LONG == 64
+#if BITS_PER_LONG == 64 || CONFIG_LIBGCC_SUPPORT
# define do_div(n,base) ({ \
uint32_t __base = (base); \
--
1.6.2.1
next prev parent reply other threads:[~2009-04-03 15:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-03 15:39 [RFC][PATCH 0/5] Add and use libgcc Bastian Blank
2009-04-03 15:40 ` Bastian Blank
2009-04-03 15:41 ` [PATCH 2/5] libgcc: Add config and support headers Bastian Blank
2009-04-03 15:41 ` [PATCH 3/5] libgcc: Add Makefile Bastian Blank
2009-04-03 15:42 ` Bastian Blank [this message]
2009-04-03 15:42 ` [PATCH 5/5] s390: Use libgcc Bastian Blank
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=20090403154201.GD7200@wavehammer.waldi.eu.org \
--to=waldi@debian.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
/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