diff options
author | DJ Delorie <dj@redhat.com> | 2013-09-12 13:52:41 -0400 |
---|---|---|
committer | DJ Delorie <dj@gcc.gnu.org> | 2013-09-12 13:52:41 -0400 |
commit | f6a83b4a9f8bb38ee24d244a4521ad6f8f77496c (patch) | |
tree | d690c25f951ef2f8c504a45d87bfd262e3ab226f /libgcc/config/msp430/mpy.c | |
parent | 8369f38a6f3f797952452dc25cd148909e049ee6 (diff) | |
download | gcc-f6a83b4a9f8bb38ee24d244a4521ad6f8f77496c.zip gcc-f6a83b4a9f8bb38ee24d244a4521ad6f8f77496c.tar.gz gcc-f6a83b4a9f8bb38ee24d244a4521ad6f8f77496c.tar.bz2 |
MAINTAINERS: Add Nick Clifton and DJ Delorie as msp430 maintainers.
* MAINTAINERS: Add Nick Clifton and DJ Delorie as msp430
maintainers.
[gcc]
* config/msp430/: New port.
* config.gcc (msp430): Added.
* doc/invoke.texi: Document MSP430 options.
* doc/install.texi: Document msp430-elf
* doc/md.texi: Document msp430-elf
* doc/contrib.texi: Document msp430-elf
[libgcc]
* config.host (msp*-*-elf): New.
* config/msp430/: New port.
[contrib]
* config-list.mk: Add msp430-elf.
From-SVN: r202535
Diffstat (limited to 'libgcc/config/msp430/mpy.c')
-rw-r--r-- | libgcc/config/msp430/mpy.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libgcc/config/msp430/mpy.c b/libgcc/config/msp430/mpy.c new file mode 100644 index 0000000..57cffd0 --- /dev/null +++ b/libgcc/config/msp430/mpy.c @@ -0,0 +1,15 @@ +/* Public domain. */ +extern int __mulhi3 (int, int); + +int +__mulhi3 (int x, int y) +{ + volatile int rv = 0; + + while (y > 0) + { + rv += x; + y --; + } + return rv; +} |