diff options
author | Florian Weimer <fweimer@redhat.com> | 2023-11-08 15:18:02 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2023-11-08 15:18:02 +0100 |
commit | f8cfb6836e8d91bb789b2e7fd65338d6f5bd459c (patch) | |
tree | 1002f133c1f0f02f1c8f3fcb464037d4c002b7d3 /sysdeps/aarch64/fpu/bits/math-vector.h | |
parent | bf033c0072554366fe9617c283c982594059ad9d (diff) | |
download | glibc-f8cfb6836e8d91bb789b2e7fd65338d6f5bd459c.tar.gz glibc-f8cfb6836e8d91bb789b2e7fd65338d6f5bd459c.tar.xz glibc-f8cfb6836e8d91bb789b2e7fd65338d6f5bd459c.zip |
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 'sysdeps/aarch64/fpu/bits/math-vector.h')
0 files changed, 0 insertions, 0 deletions