diff options
Diffstat (limited to 'libgcc/config/msp430/floatunhisf.c')
-rw-r--r-- | libgcc/config/msp430/floatunhisf.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libgcc/config/msp430/floatunhisf.c b/libgcc/config/msp430/floatunhisf.c new file mode 100644 index 0000000000..423627ab1c --- /dev/null +++ b/libgcc/config/msp430/floatunhisf.c @@ -0,0 +1,14 @@ +/* Public domain. */ +typedef int HItype __attribute__ ((mode (HI))); +typedef unsigned int UHItype __attribute__ ((mode (HI))); +typedef float SFtype __attribute__ ((mode (SF))); + +extern SFtype __floatunsisf (unsigned long); + +SFtype __floatunhisf (UHItype); + +SFtype +__floatunhisf (UHItype u) +{ + return __floatunsisf ((unsigned long)u); +} |