summaryrefslogtreecommitdiffstats
path: root/gl/stdckdint.h
diff options
context:
space:
mode:
authorRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2023-01-31 14:13:12 (GMT)
committerRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2023-01-31 14:13:12 (GMT)
commitcfa0738187c51eeb897133d1699b35ddd8e96fd5 (patch)
treeb7c32a9074a9b69cf94c31511c38e3bb8a74f91f /gl/stdckdint.h
parent393bd16d2e21833236f65fb330fe848eb45f742d (diff)
downloadmonitoring-plugins-cfa0738187c51eeb897133d1699b35ddd8e96fd5.tar.gz
Remove sha1 and add sha256
Diffstat (limited to 'gl/stdckdint.h')
-rw-r--r--gl/stdckdint.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/gl/stdckdint.h b/gl/stdckdint.h
new file mode 100644
index 0000000..edcda29
--- /dev/null
+++ b/gl/stdckdint.h
@@ -0,0 +1,36 @@
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 */