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