]> git.ipfire.org Git - thirdparty/glibc.git/blob - sysdeps/generic/math-use-builtins.h
Use GCC builtins for ceil functions if desired.
[thirdparty/glibc.git] / sysdeps / generic / math-use-builtins.h
1 /* Using math gcc builtins instead of generic implementation. Generic version.
2 Copyright (C) 2019 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 /* Define these macros to 1 to use __builtin_xyz instead of the
23 generic implementation. */
24 #define USE_NEARBYINT_BUILTIN 0
25 #define USE_NEARBYINTF_BUILTIN 0
26 #define USE_NEARBYINTL_BUILTIN 0
27 #define USE_NEARBYINTF128_BUILTIN 0
28
29 #define USE_RINT_BUILTIN 0
30 #define USE_RINTF_BUILTIN 0
31 #define USE_RINTL_BUILTIN 0
32 #define USE_RINTF128_BUILTIN 0
33
34 #define USE_FLOOR_BUILTIN 0
35 #define USE_FLOORF_BUILTIN 0
36 #define USE_FLOORL_BUILTIN 0
37 #define USE_FLOORF128_BUILTIN 0
38
39 #define USE_CEIL_BUILTIN 0
40 #define USE_CEILF_BUILTIN 0
41 #define USE_CEILL_BUILTIN 0
42 #define USE_CEILF128_BUILTIN 0
43
44 #endif /* math-use-builtins.h */