diff options
Diffstat (limited to 'libgcc/config/msp430/floatunhidf.c')
-rw-r--r-- | libgcc/config/msp430/floatunhidf.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libgcc/config/msp430/floatunhidf.c b/libgcc/config/msp430/floatunhidf.c new file mode 100644 index 00000000000..f13b5507692 --- /dev/null +++ b/libgcc/config/msp430/floatunhidf.c @@ -0,0 +1,12 @@ +/* Public domain. */ +typedef int HItype __attribute__ ((mode (HI))); +typedef unsigned int UHItype __attribute__ ((mode (HI))); +typedef float DFtype __attribute__ ((mode (DF))); + +extern DFtype __floatunsidf (unsigned long); + +DFtype +__floatunhidf (UHItype u) +{ + return __floatunsidf ((unsigned long)u); +} |