aboutsummaryrefslogtreecommitdiff
path: root/stdio-common/wprintf_function_invoke.c
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-10-03 09:22:46 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-10-31 14:17:42 -0300
commit21d30c774c7f9f5878f0bf9438736c702b0a58a3 (patch)
tree31583a8d78ebccd92955d1e8341c16884af99417 /stdio-common/wprintf_function_invoke.c
parentfccf38c51746e0817c2409bb361398f9465e0760 (diff)
downloadglibc-21d30c774c7f9f5878f0bf9438736c702b0a58a3.zip
glibc-21d30c774c7f9f5878f0bf9438736c702b0a58a3.tar.gz
glibc-21d30c774c7f9f5878f0bf9438736c702b0a58a3.tar.bz2
stdlib: Optimization qsort{_r} swap implementation
The optimization takes in consideration both the most common elements are either 32 or 64 bit in size and inputs are aligned to the word boundary. This is similar to what msort does. For large buffer the swap operation uses memcpy/mempcpy with a small fixed size buffer (so compiler might inline the operations). Checked on x86_64-linux-gnu. Reviewed-by: Noah Goldstein <goldstein.w.n@gmail.com>
Diffstat (limited to 'stdio-common/wprintf_function_invoke.c')
0 files changed, 0 insertions, 0 deletions