diff options
| author | Rasmus Villemoes <linux@rasmusvillemoes.dk> | 2015-01-14 15:15:57 +0000 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-11 10:59:41 +0200 |
| commit | 8930a03c2696bc461bebf340dec2ba85e9c06e14 (patch) | |
| tree | 338f17286a6852cc4c075d5c1500ba3ee9898bd1 /kernel | |
| parent | 1a1e4f17bb07f6261bf16da56fbaa431b59a6bbb (diff) | |
MPILIB: Deobfuscate mpi_cmp
The condition preceding 'return 1;' makes my head hurt. At this point,
we know that u and v have the same sign; if they are negative, they
compare opposite to how their absolute values compare (which
mpihelp_cmp found for us), otherwise cmp itself is the
answer. Negating cmp is ok since mpihelp_cmp returns {-1,0,1};
-INT_MIN==INT_MIN won't bite us.
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Dmitry Kasatkin <dmitry.kasatkin@gmail.com>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions
