Mercurial > hg > CbC > CbC_gcc
view gcc/config/divmod.c @ 48:9907f3135723
update CbC on GCC from 4.4.2 to 4.4.3.
author | kent <kent@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 07 Feb 2010 17:48:31 +0900 |
parents | a06113de4d67 |
children | 77e2b8dfacca |
line wrap: on
line source
long udivmodsi4 (); long __divsi3 (long a, long b) { int neg = 0; long res; if (a < 0) { a = -a; neg = !neg; } if (b < 0) { b = -b; neg = !neg; } res = udivmodsi4 (a, b, 0); if (neg) res = -res; return res; } long __modsi3 (long a, long b) { int neg = 0; long res; if (a < 0) { a = -a; neg = 1; } if (b < 0) b = -b; res = udivmodsi4 (a, b, 1); if (neg) res = -res; return res; }