compile_test.c 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. #include <math.h>
  2. int testl(long double long_double_x, int int_x, long long_x)
  3. {
  4. int r = 0;
  5. r += __finitel(long_double_x);
  6. r += __fpclassifyl(long_double_x);
  7. r += __isinfl(long_double_x);
  8. r += __isnanl(long_double_x);
  9. r += __signbitl(long_double_x);
  10. r += acoshl(long_double_x);
  11. r += acosl(long_double_x);
  12. r += asinhl(long_double_x);
  13. r += asinl(long_double_x);
  14. r += atan2l(long_double_x, long_double_x);
  15. r += atanhl(long_double_x);
  16. r += atanl(long_double_x);
  17. r += cbrtl(long_double_x);
  18. r += ceill(long_double_x);
  19. r += copysignl(long_double_x, long_double_x);
  20. r += coshl(long_double_x);
  21. r += cosl(long_double_x);
  22. r += erfcl(long_double_x);
  23. r += erfl(long_double_x);
  24. r += exp2l(long_double_x);
  25. r += expl(long_double_x);
  26. r += expm1l(long_double_x);
  27. r += fabsl(long_double_x);
  28. r += fdiml(long_double_x, long_double_x);
  29. r += floorl(long_double_x);
  30. r += fmal(long_double_x, long_double_x, long_double_x);
  31. r += fmaxl(long_double_x, long_double_x);
  32. r += fminl(long_double_x, long_double_x);
  33. r += fmodl(long_double_x, long_double_x);
  34. r += frexpl(long_double_x, &int_x);
  35. r += hypotl(long_double_x, long_double_x);
  36. r += ilogbl(long_double_x);
  37. r += ldexpl(long_double_x, int_x);
  38. r += lgammal(long_double_x);
  39. r += llrintl(long_double_x);
  40. r += llroundl(long_double_x);
  41. r += log10l(long_double_x);
  42. r += log1pl(long_double_x);
  43. r += log2l(long_double_x);
  44. r += logbl(long_double_x);
  45. r += logl(long_double_x);
  46. r += lrintl(long_double_x);
  47. r += lroundl(long_double_x);
  48. r += modfl(long_double_x, &long_double_x);
  49. r += nearbyintl(long_double_x);
  50. r += nextafterl(long_double_x, long_double_x);
  51. /* r += nexttowardl(long_double_x, long_double_x); - uclibc doesn't provide this [yet?] */
  52. r += powl(long_double_x, long_double_x);
  53. r += remainderl(long_double_x, long_double_x);
  54. r += remquol(long_double_x, long_double_x, &int_x);
  55. r += rintl(long_double_x);
  56. r += roundl(long_double_x);
  57. r += scalblnl(long_double_x, long_x);
  58. r += scalbnl(long_double_x, int_x);
  59. r += sinhl(long_double_x);
  60. r += sinl(long_double_x);
  61. r += sqrtl(long_double_x);
  62. r += tanhl(long_double_x);
  63. r += tanl(long_double_x);
  64. r += tgammal(long_double_x);
  65. r += truncl(long_double_x);
  66. return r;
  67. }
  68. int main(int argc, char **argv)
  69. {
  70. return (long) &testl;
  71. }