From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 3 Apr 2009 17:42:01 +0200 From: Bastian Blank Subject: [PATCH 4/5] libgcc: Disable usage of special do_div version Message-ID: <20090403154201.GD7200@wavehammer.waldi.eu.org> References: <20090403153941.GA7045@wavehammer.waldi.eu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20090403153941.GA7045@wavehammer.waldi.eu.org> Sender: linux-kernel-owner@vger.kernel.org List-Archive: List-Post: To: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org List-ID: 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 --- 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 #include -#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