htop/linux
Christian Göttsche 397b5c4bd0 Introduce spaceship comparison for Processes
If currently two unsigned values are compared via `a - b`, in the case b
is actually bigger than a, the result will not be an negative number (as
-1 is expected) but a huge positive number as the subtraction is an
unsigned subtraction.

Avoid over-/underflow affected operations; use comparisons.
Modern compilers will generate sane code, like:
    xor     eax, eax
    cmp     rdi, rsi
    seta    al
    sbb     eax, 0
    ret
2020-11-15 18:25:21 +01:00
..
Battery.c Embracing branches 2020-11-02 22:15:01 +01:00
Battery.h Make all required includes explicit 2020-10-18 20:09:05 +02:00
IOPriority.h Enclose macro arguments in parentheses 2020-10-28 19:57:10 +01:00
IOPriorityPanel.c Wrap inline structure definitions 2020-11-02 22:15:01 +01:00
IOPriorityPanel.h Make all required includes explicit 2020-10-18 20:09:05 +02:00
LinuxProcess.c Introduce spaceship comparison for Processes 2020-11-15 18:25:21 +01:00
LinuxProcess.h Spacing around operators 2020-11-02 22:15:01 +01:00
LinuxProcessList.c Resolve merge conflicts, merge #298 "Macro cleanup" from @BenBE 2020-11-15 14:33:09 +01:00
LinuxProcessList.h Spacing around operators 2020-11-02 22:15:01 +01:00
Platform.c Resolve merge conflicts, merge #229 "Add SystemdMeter" from @cgzones 2020-11-15 14:52:25 +01:00
Platform.h Resolve merge conflicts, merge #298 "Macro cleanup" from @BenBE 2020-11-15 14:33:09 +01:00
PressureStallMeter.c Whitespace and indentation issues 2020-11-02 22:15:01 +01:00
PressureStallMeter.h Mark remaining classes const 2020-10-13 14:56:01 +02:00
SELinuxMeter.c Embracing branches 2020-11-02 22:15:01 +01:00
SELinuxMeter.h Add SELinuxMeter 2020-10-16 19:20:07 +02:00
SystemdMeter.c Add SystemdMeter 2020-10-31 19:51:42 +01:00
SystemdMeter.h Add SystemdMeter 2020-10-31 19:51:42 +01:00
ZramMeter.c Spacing after keywords (if) 2020-11-02 22:14:59 +01:00
ZramMeter.h Zram Meter feature 2020-10-31 18:51:53 +01:00
ZramStats.h Zram Meter feature 2020-10-31 18:51:53 +01:00