Feature #1540 » 0088-gnulib-common.m4-Update-to-serial-111.patch
dependencies/m4/gnulib-common.m4 | ||
---|---|---|
# gnulib-common.m4
|
||
# serial 110
|
||
# serial 111
|
||
dnl Copyright (C) 2007-2025 Free Software Foundation, Inc.
|
||
dnl This file is free software; the Free Software Foundation
|
||
dnl gives unlimited permission to copy and/or distribute it,
|
||
... | ... | |
-1 if n1 < n2
|
||
The naïve code (n1 > n2 ? 1 : n1 < n2 ? -1 : 0) produces a conditional
|
||
jump with nearly all GCC versions up to GCC 10.
|
||
This variant (n1 < n2 ? -1 : n1 > n2) produces a conditional with many
|
||
GCC versions up to GCC 9.
|
||
This variant (n1 < n2 ? -1 : n1 > n2) produces a conditional jump with
|
||
many GCC versions up to GCC 9.
|
||
The better code (n1 > n2) - (n1 < n2) from Hacker's Delight § 2-9
|
||
avoids conditional jumps in all GCC versions >= 3.4. */
|
||
#define _GL_CMP(n1, n2) (((n1) > (n2)) - ((n1) < (n2)))
|