summaryrefslogtreecommitdiffstats
path: root/Macros.h
diff options
context:
space:
mode:
authorfraggerfox <santhosh.raju@gmail.com>2021-06-12 14:22:57 +0530
committerBenBE <BenBE@geshi.org>2021-06-26 12:18:37 +0200
commit3770769ed1b52052106274e3fe8c229b24b02553 (patch)
tree2743b6ecd4b40150886e49f24c6153aa6f941102 /Macros.h
parent2f5b3ef7337857e04cbb4287517fd51e58ee5beb (diff)
Replaces WRAP_SUBTRACT with saturatingSub inline function to reduce code duplication.
Diffstat (limited to 'Macros.h')
-rw-r--r--Macros.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Macros.h b/Macros.h
index 1fdfb1ed..14249f3d 100644
--- a/Macros.h
+++ b/Macros.h
@@ -69,7 +69,7 @@
#define IGNORE_WCASTQUAL_END
#endif
-/* This subtraction is used by NetBSD / OpenBSD for calculation of CPU usage items. */
+/* This subtraction is used by Linux / NetBSD / OpenBSD for calculation of CPU usage items. */
static inline unsigned long long saturatingSub(unsigned long long a, unsigned long long b) {
return a > b ? a - b : 0;
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy