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