diff options
author | fraggerfox <santhosh.raju@gmail.com> | 2021-06-12 14:22:57 +0530 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2021-06-26 12:18:37 +0200 |
commit | 3770769ed1b52052106274e3fe8c229b24b02553 (patch) | |
tree | 2743b6ecd4b40150886e49f24c6153aa6f941102 /Macros.h | |
parent | 2f5b3ef7337857e04cbb4287517fd51e58ee5beb (diff) |
Replaces WRAP_SUBTRACT with saturatingSub inline function to reduce code duplication.
Diffstat (limited to 'Macros.h')
-rw-r--r-- | Macros.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |