1 /* Copyright (C) 2004 Free Software Foundation.
3 Check that rint, rintf, rintl, floor, floorf, floorl,
4 ceil, ceilf, ceill, trunc, truncf, truncl,
5 nearbyint, nearbyintf and nearbyintl
6 built-in functions compile.
8 Written by Uros Bizjak, 25th Aug 2004. */
10 /* { dg-do compile } */
11 /* { dg-options "-O2 -ffast-math" } */
13 extern double rint(double);
14 extern double floor(double);
15 extern double ceil(double);
16 extern double trunc(double);
17 extern double nearbyint(double);
19 extern float rintf(float);
20 extern float floorf(float);
21 extern float ceilf(float);
22 extern float truncf(float);
23 extern float nearbyintf(float);
25 extern long double rintl(long double);
26 extern long double floorl(long double);
27 extern long double ceill(long double);
28 extern long double truncl(long double);
29 extern long double nearbyintl(long double);
32 double test1(double x)
37 double test2(double x)
42 double test3(double x)
47 double test4(double x)
52 double test5(double x)
82 long double test1l(long double x)
87 long double test2l(long double x)
92 long double test3l(long double x)
97 long double test4l(long double x)
102 long double test5l(long double x)
104 return nearbyintl(x);