PR target/24837
[official-gcc.git] / gcc / config / fixtfdi.c
blob42b8c2301c1c0cfdea7e4d8be6cdcdc18827bd55
1 /* Public domain. */
2 #if __LDBL_MANT_DIG__ == 106 || __LDBL_MANT_DIG__ == 113
3 typedef int DItype __attribute__ ((mode (DI)));
4 typedef float TFtype __attribute__ ((mode (TF)));
6 DItype __fixtfdi (TFtype);
7 DItype __fixunstfdi (TFtype);
10 DItype
11 __fixtfdi (TFtype x)
13 if (x < 0)
14 return - __fixunstfdi (-x);
15 return __fixunstfdi (x);
18 #endif