aboutsummaryrefslogtreecommitdiff
path: root/argp
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2023-11-08 15:18:02 +0100
committerFlorian Weimer <fweimer@redhat.com>2023-11-08 15:18:02 +0100
commitf8cfb6836e8d91bb789b2e7fd65338d6f5bd459c (patch)
tree1002f133c1f0f02f1c8f3fcb464037d4c002b7d3 /argp
parentbf033c0072554366fe9617c283c982594059ad9d (diff)
downloadglibc-f8cfb6836e8d91bb789b2e7fd65338d6f5bd459c.zip
glibc-f8cfb6836e8d91bb789b2e7fd65338d6f5bd459c.tar.gz
glibc-f8cfb6836e8d91bb789b2e7fd65338d6f5bd459c.tar.bz2
stdlib: Avoid element self-comparisons in qsort
This improves compatibility with applications which assume that qsort does not invoke the comparison function with equal pointer arguments. The newly introduced branches should be predictable, as leading to a call to the comparison function. If the prediction fails, we avoid calling the function. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'argp')
0 files changed, 0 insertions, 0 deletions