[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090403154201.GD7200@wavehammer.waldi.eu.org>
Date: Fri, 3 Apr 2009 17:42:01 +0200
From: Bastian Blank <waldi@...ian.org>
To: linux-kernel@...r.kernel.org, linux-s390@...r.kernel.org
Subject: [PATCH 4/5] libgcc: Disable usage of special do_div version
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@...ian.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists