Mercurial > hg > CbC > CbC_gcc
view gcc/config/iq2000/lib2extra-funcs.c @ 8:5066dc73ff8f
xxx
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 20 Aug 2009 19:10:35 +0900 |
parents | a06113de4d67 |
children | 77e2b8dfacca |
line wrap: on
line source
typedef unsigned int USItype __attribute__ ((mode (SI))); USItype __mulsi3 (USItype a, USItype b) { USItype c = 0; while (a != 0) { if (a & 1) c += b; a >>= 1; b <<= 1; } return c; }