1 | /* Using math gcc builtins instead of generic implementation. Generic version. |
2 | Copyright (C) 2019-2020 Free Software Foundation, Inc. |
3 | This file is part of the GNU C Library. |
4 | |
5 | The GNU C Library is free software; you can redistribute it and/or |
6 | modify it under the terms of the GNU Lesser General Public |
7 | License as published by the Free Software Foundation; either |
8 | version 2.1 of the License, or (at your option) any later version. |
9 | |
10 | The GNU C Library is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Lesser General Public License for more details. |
14 | |
15 | You should have received a copy of the GNU Lesser General Public |
16 | License along with the GNU C Library; if not, see |
17 | <https://www.gnu.org/licenses/>. */ |
18 | |
19 | #ifndef MATH_USE_BUILTINS_H |
20 | #define MATH_USE_BUILTINS_H 1 |
21 | |
22 | #include <features.h> /* For __GNUC_PREREQ. */ |
23 | |
24 | /* Define these macros to 1 to use __builtin_xyz instead of the |
25 | generic implementation. */ |
26 | #define USE_NEARBYINT_BUILTIN 0 |
27 | #define USE_NEARBYINTF_BUILTIN 0 |
28 | #define USE_NEARBYINTL_BUILTIN 0 |
29 | #define USE_NEARBYINTF128_BUILTIN 0 |
30 | |
31 | #define USE_RINT_BUILTIN 0 |
32 | #define USE_RINTF_BUILTIN 0 |
33 | #define USE_RINTL_BUILTIN 0 |
34 | #define USE_RINTF128_BUILTIN 0 |
35 | |
36 | #define USE_FLOOR_BUILTIN 0 |
37 | #define USE_FLOORF_BUILTIN 0 |
38 | #define USE_FLOORL_BUILTIN 0 |
39 | #define USE_FLOORF128_BUILTIN 0 |
40 | |
41 | #define USE_CEIL_BUILTIN 0 |
42 | #define USE_CEILF_BUILTIN 0 |
43 | #define USE_CEILL_BUILTIN 0 |
44 | #define USE_CEILF128_BUILTIN 0 |
45 | |
46 | #define USE_TRUNC_BUILTIN 0 |
47 | #define USE_TRUNCF_BUILTIN 0 |
48 | #define USE_TRUNCL_BUILTIN 0 |
49 | #define USE_TRUNCF128_BUILTIN 0 |
50 | |
51 | #define USE_ROUND_BUILTIN 0 |
52 | #define USE_ROUNDF_BUILTIN 0 |
53 | #define USE_ROUNDL_BUILTIN 0 |
54 | #define USE_ROUNDF128_BUILTIN 0 |
55 | |
56 | #define USE_COPYSIGNL_BUILTIN 1 |
57 | #if __GNUC_PREREQ (7, 0) |
58 | # define USE_COPYSIGNF128_BUILTIN 1 |
59 | #else |
60 | # define USE_COPYSIGNF128_BUILTIN 0 |
61 | #endif |
62 | |
63 | #endif /* math-use-builtins.h */ |
64 | |