From 3770769ed1b52052106274e3fe8c229b24b02553 Mon Sep 17 00:00:00 2001 From: fraggerfox Date: Sat, 12 Jun 2021 14:22:57 +0530 Subject: Replaces WRAP_SUBTRACT with saturatingSub inline function to reduce code duplication. --- Macros.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Macros.h') 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; } -- cgit v1.2.3