diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2005-06-20 11:45:32 -0400 |
---|---|---|
committer | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2005-06-20 11:45:32 -0400 |
commit | 3ade2fe0fd0238d68938b8f5f73ebd0561d2d2e5 (patch) | |
tree | 495ace47f01695acc4effdc8d71e3961689c52e5 /arch/arm/lib/muldi3.c | |
parent | f29481c0e7e55efc25598c1a6c503015cfe45245 (diff) |
[PATCH] ARM: Lindent GCC helper functions
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/lib/muldi3.c')
-rw-r--r-- | arch/arm/lib/muldi3.c | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/arch/arm/lib/muldi3.c b/arch/arm/lib/muldi3.c index 5b649fa9e2f7..0a3b93313f18 100644 --- a/arch/arm/lib/muldi3.c +++ b/arch/arm/lib/muldi3.c | |||
@@ -52,26 +52,21 @@ Boston, MA 02111-1307, USA. */ | |||
52 | : "r" ((u32) (a)), \ | 52 | : "r" ((u32) (a)), \ |
53 | "r" ((u32) (b)));} | 53 | "r" ((u32) (b)));} |
54 | 54 | ||
55 | |||
56 | #define __umulsidi3(u, v) \ | 55 | #define __umulsidi3(u, v) \ |
57 | ({DIunion __w; \ | 56 | ({DIunion __w; \ |
58 | umul_ppmm (__w.s.high, __w.s.low, u, v); \ | 57 | umul_ppmm (__w.s.high, __w.s.low, u, v); \ |
59 | __w.ll; }) | 58 | __w.ll; }) |
60 | 59 | ||
61 | 60 | s64 __muldi3(s64 u, s64 v) | |
62 | s64 | ||
63 | __muldi3 (s64 u, s64 v) | ||
64 | { | 61 | { |
65 | DIunion w; | 62 | DIunion w; |
66 | DIunion uu, vv; | 63 | DIunion uu, vv; |
67 | 64 | ||
68 | uu.ll = u, | 65 | uu.ll = u, vv.ll = v; |
69 | vv.ll = v; | ||
70 | 66 | ||
71 | w.ll = __umulsidi3 (uu.s.low, vv.s.low); | 67 | w.ll = __umulsidi3(uu.s.low, vv.s.low); |
72 | w.s.high += ((u32) uu.s.low * (u32) vv.s.high | 68 | w.s.high += ((u32) uu.s.low * (u32) vv.s.high |
73 | + (u32) uu.s.high * (u32) vv.s.low); | 69 | + (u32) uu.s.high * (u32) vv.s.low); |
74 | 70 | ||
75 | return w.ll; | 71 | return w.ll; |
76 | } | 72 | } |
77 | |||