htop/solaris
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 Add -Wmissing-prototypes compiler warning 2020-09-25 17:20:35 +02:00
Battery.h Add -Wmissing-prototypes compiler warning 2020-09-25 17:20:35 +02:00
Platform.c Resolve merge conflicts, merge #298 "Macro cleanup" from @BenBE 2020-11-15 14:33:09 +01:00
Platform.h Resolve merge conflicts, merge #298 "Macro cleanup" from @BenBE 2020-11-15 14:33:09 +01:00
SolarisProcess.c Introduce spaceship comparison for Processes 2020-11-15 18:25:21 +01:00
SolarisProcess.h Hold only a const version of Settings in Process 2020-10-26 19:30:38 +01:00
SolarisProcessList.c Embracing branches 2020-11-02 22:15:01 +01:00
SolarisProcessList.h Spacing around operators 2020-11-02 22:15:01 +01:00