diff options
Diffstat (limited to 'gcc-4.4.0/gcc/config/iq2000/lib2extra-funcs.c')
-rw-r--r-- | gcc-4.4.0/gcc/config/iq2000/lib2extra-funcs.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc-4.4.0/gcc/config/iq2000/lib2extra-funcs.c b/gcc-4.4.0/gcc/config/iq2000/lib2extra-funcs.c new file mode 100644 index 000000000..e092babdd --- /dev/null +++ b/gcc-4.4.0/gcc/config/iq2000/lib2extra-funcs.c @@ -0,0 +1,17 @@ +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; +} |