From 8d52ea6db484c689a75ef8a36a4e525753b8f078 Mon Sep 17 00:00:00 2001 From: Thomas Chou Date: Sat, 15 May 2010 06:00:05 +0800 Subject: nios2: fix div64 issue for gcc4 This patch fixes the run-time error on div64 when built with gcc4, which was reported by jhwu0625 on nios forum. It merges math support from libgcc of gcc4. This patch is copied from nios2-linux. It works with both gcc3 and gcc4. The old mult.c, divmod.c and math.h are removed. Signed-off-by: Thomas Chou Signed-off-by: Scott McNutt --- arch/nios2/lib/math.h | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 arch/nios2/lib/math.h (limited to 'arch/nios2/lib/math.h') diff --git a/arch/nios2/lib/math.h b/arch/nios2/lib/math.h deleted file mode 100644 index f0aed8edc36..00000000000 --- a/arch/nios2/lib/math.h +++ /dev/null @@ -1,16 +0,0 @@ -#define BITS_PER_UNIT 8 - -typedef int HItype __attribute__ ((mode (HI))); -typedef unsigned int UHItype __attribute__ ((mode (HI))); - -typedef int SItype __attribute__ ((mode (SI))); -typedef unsigned int USItype __attribute__ ((mode (SI))); - -typedef int word_type __attribute__ ((mode (__word__))); - -struct SIstruct {HItype low, high;}; - -typedef union { - struct SIstruct s; - SItype ll; -} SIunion; -- cgit v1.2.3