[PATCH 4/5] libgcc: Disable usage of special do_div version

Bastian Blank
2009-04-03T15:42:01Z

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