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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 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-s390" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Kernel Development]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Info]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Linux Media]     [Device Mapper]

  Powered by Linux