summaryrefslogtreecommitdiff
path: root/gcc/config/fixtfdi.c
blob: 42b8c2301c1c0cfdea7e4d8be6cdcdc18827bd55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* Public domain.  */
#if __LDBL_MANT_DIG__ == 106 || __LDBL_MANT_DIG__ == 113
typedef int DItype __attribute__ ((mode (DI)));
typedef float TFtype __attribute__ ((mode (TF)));

DItype __fixtfdi (TFtype);
DItype __fixunstfdi (TFtype);


DItype
__fixtfdi (TFtype x)
{
  if (x < 0)
    return - __fixunstfdi (-x);
  return __fixunstfdi (x);
}

#endif