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 ifloor(double a)8int ifloor (double a) { return __builtin_ifloor (a); } 9 #ifdef HAVE_C99_RUNTIME ifloorf(float a)10int ifloorf (float a) { return __builtin_ifloorf (a); } ifloorl(long double a)11int ifloorl (long double a) { return __builtin_ifloorl (a); } 12 #endif 13 lfloor(double a)14long lfloor (double a) { return __builtin_lfloor (a); } 15 #ifdef HAVE_C99_RUNTIME lfloorf(float a)16long lfloorf (float a) { return __builtin_lfloorf (a); } lfloorl(long double a)17long lfloorl (long double a) { return __builtin_lfloorl (a); } 18 #endif 19 llfloor(double a)20long long llfloor (double a) { return __builtin_llfloor (a); } 21 #ifdef HAVE_C99_RUNTIME llfloorf(float a)22long long llfloorf (float a) { return __builtin_llfloorf (a); } llfloorl(long double a)23long long llfloorl (long double a) { return __builtin_llfloorl (a); } 24 #endif 25 iceil(double a)26int iceil (double a) { return __builtin_iceil (a); } 27 #ifdef HAVE_C99_RUNTIME iceilf(float a)28int iceilf (float a) { return __builtin_iceilf (a); } iceill(long double a)29int iceill (long double a) { return __builtin_iceill (a); } 30 #endif 31 lceil(double a)32long lceil (double a) { return __builtin_lceil (a); } 33 #ifdef HAVE_C99_RUNTIME lceilf(float a)34long lceilf (float a) { return __builtin_lceilf (a); } lceill(long double a)35long lceill (long double a) { return __builtin_lceill (a); } 36 #endif 37 llceil(double a)38long long llceil (double a) { return __builtin_llceil (a); } 39 #ifdef HAVE_C99_RUNTIME llceilf(float a)40long long llceilf (float a) { return __builtin_llceilf (a); } llceill(long double a)41long long llceill (long double a) { return __builtin_llceill (a); } 42 #endif 43 iround(double a)44int iround (double a) { return __builtin_iround (a); } 45 #ifdef HAVE_C99_RUNTIME iroundf(float a)46int iroundf (float a) { return __builtin_iroundf (a); } iroundl(long double a)47int iroundl (long double a) { return __builtin_iroundl (a); } 48 #endif 49 irint(double a)50int irint (double a) { return __builtin_irint (a); } 51 #ifdef HAVE_C99_RUNTIME irintf(float a)52int irintf (float a) { return __builtin_irintf (a); } irintl(long double a)53int irintl (long double a) { return __builtin_irintl (a); } 54 #endif 55 main()56int main () { return 0; } 57