diff options
Diffstat (limited to 'arch/nios2/lib/libgcc.c')
-rw-r--r-- | arch/nios2/lib/libgcc.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/arch/nios2/lib/libgcc.c b/arch/nios2/lib/libgcc.c index abf93fdd71..814df73310 100644 --- a/arch/nios2/lib/libgcc.c +++ b/arch/nios2/lib/libgcc.c @@ -319,15 +319,15 @@ DWtype __divdi3(DWtype u, DWtype v) DWunion vv = {.ll = v}; DWtype w; - if (uu.s.high < 0) - c = ~c, - - uu.ll = -uu.ll; - - if (vv.s.high < 0) - c = ~c, + if (uu.s.high < 0) { + c = ~c; + uu.ll = -uu.ll; + } - vv.ll = -vv.ll; + if (vv.s.high < 0) { + c = ~c; + vv.ll = -vv.ll; + } w = __udivmoddi4(uu.ll, vv.ll, (UDWtype *) 0); @@ -366,9 +366,10 @@ DWtype __moddi3(DWtype u, DWtype v) DWunion vv = {.ll = v}; DWtype w; - if (uu.s.high < 0) - c = ~c, + if (uu.s.high < 0) { + c = ~c; uu.ll = -uu.ll; + } if (vv.s.high < 0) vv.ll = -vv.ll; |