diff options
Diffstat (limited to 'gl/stdckdint.h')
-rw-r--r-- | gl/stdckdint.h | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/gl/stdckdint.h b/gl/stdckdint.h deleted file mode 100644 index edcda29..0000000 --- a/gl/stdckdint.h +++ /dev/null | |||
@@ -1,36 +0,0 @@ | |||
1 | /* DO NOT EDIT! GENERATED AUTOMATICALLY! */ | ||
2 | /* stdckdint.h -- checked integer arithmetic | ||
3 | |||
4 | Copyright 2022-2023 Free Software Foundation, Inc. | ||
5 | |||
6 | This program is free software: you can redistribute it and/or modify it | ||
7 | under the terms of the GNU Lesser General Public License as published | ||
8 | by the Free Software Foundation; either version 2.1 of the License, or | ||
9 | (at your option) any later version. | ||
10 | |||
11 | This program is distributed in the hope that it will be useful, | ||
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | GNU Lesser General Public License for more details. | ||
15 | |||
16 | You should have received a copy of the GNU Lesser General Public License | ||
17 | along with this program. If not, see <https://www.gnu.org/licenses/>. */ | ||
18 | |||
19 | #ifndef _GL_STDCKDINT_H | ||
20 | #define _GL_STDCKDINT_H | ||
21 | |||
22 | #include "intprops-internal.h" | ||
23 | |||
24 | /* Store into *R the low-order bits of A + B, A - B, A * B, respectively. | ||
25 | Return 1 if the result overflows, 0 otherwise. | ||
26 | A, B, and *R can have any integer type other than char, bool, a | ||
27 | bit-precise integer type, or an enumeration type. | ||
28 | |||
29 | These are like the standard macros introduced in C23, except that | ||
30 | arguments should not have side effects. */ | ||
31 | |||
32 | #define ckd_add(r, a, b) ((bool) _GL_INT_ADD_WRAPV (a, b, r)) | ||
33 | #define ckd_sub(r, a, b) ((bool) _GL_INT_SUBTRACT_WRAPV (a, b, r)) | ||
34 | #define ckd_mul(r, a, b) ((bool) _GL_INT_MULTIPLY_WRAPV (a, b, r)) | ||
35 | |||
36 | #endif /* _GL_STDCKDINT_H */ | ||