1 /* Check that conversion functions don't leak into global namespace. */
2
3 /* { dg-do link } */
4 /* { dg-options "-ffast-math" } */
5
6 #include "../../gcc.dg/builtins-config.h"
7
8 int ifloor (double a) { return __builtin_ifloor (a); }
9 #ifdef HAVE_C99_RUNTIME
10 int ifloorf (float a) { return __builtin_ifloorf (a); }
11 int ifloorl (long double a) { return __builtin_ifloorl (a); }
12 #endif
13
14 long lfloor (double a) { return __builtin_lfloor (a); }
15 #ifdef HAVE_C99_RUNTIME
16 long lfloorf (float a) { return __builtin_lfloorf (a); }
17 long lfloorl (long double a) { return __builtin_lfloorl (a); }
18 #endif
19
20 long long llfloor (double a) { return __builtin_llfloor (a); }
21 #ifdef HAVE_C99_RUNTIME
22 long long llfloorf (float a) { return __builtin_llfloorf (a); }
23 long long llfloorl (long double a) { return __builtin_llfloorl (a); }
24 #endif
25
26 int iceil (double a) { return __builtin_iceil (a); }
27 #ifdef HAVE_C99_RUNTIME
28 int iceilf (float a) { return __builtin_iceilf (a); }
29 int iceill (long double a) { return __builtin_iceill (a); }
30 #endif
31
32 long lceil (double a) { return __builtin_lceil (a); }
33 #ifdef HAVE_C99_RUNTIME
34 long lceilf (float a) { return __builtin_lceilf (a); }
35 long lceill (long double a) { return __builtin_lceill (a); }
36 #endif
37
38 long long llceil (double a) { return __builtin_llceil (a); }
39 #ifdef HAVE_C99_RUNTIME
40 long long llceilf (float a) { return __builtin_llceilf (a); }
41 long long llceill (long double a) { return __builtin_llceill (a); }
42 #endif
43
44 int iround (double a) { return __builtin_iround (a); }
45 #ifdef HAVE_C99_RUNTIME
46 int iroundf (float a) { return __builtin_iroundf (a); }
47 int iroundl (long double a) { return __builtin_iroundl (a); }
48 #endif
49
50 int irint (double a) { return __builtin_irint (a); }
51 #ifdef HAVE_C99_RUNTIME
52 int irintf (float a) { return __builtin_irintf (a); }
53 int irintl (long double a) { return __builtin_irintl (a); }
54 #endif
55
56 int main () { return 0; }