diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2016-03-25 08:20:17 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2016-03-31 09:00:41 -0700 |
commit | 7df7c6a195d6bc6ffdd90db0786d5de9c67d037a (patch) | |
tree | e406db6d384ec00077f4d8feb85364476cc3e1d5 /libio/bits/stdio-ldbl.h | |
parent | d1f2de07cb44abfb9e78f825e3edf2490cf1057c (diff) | |
download | glibc-7df7c6a195d6bc6ffdd90db0786d5de9c67d037a.tar.gz glibc-7df7c6a195d6bc6ffdd90db0786d5de9c67d037a.tar.xz glibc-7df7c6a195d6bc6ffdd90db0786d5de9c67d037a.zip |
Add x86-64 memset with unaligned store and rep stosb
Implement x86-64 memset with unaligned store and rep movsb. Support 16-byte, 32-byte and 64-byte vector register sizes. A single file provides 2 implementations of memset, one with rep stosb and the other without rep stosb. They share the same codes when size is between 2 times of vector register size and REP_STOSB_THRESHOLD which defaults to 2KB. Key features: 1. Use overlapping store to avoid branch. 2. For size <= 4 times of vector register size, fully unroll the loop. 3. For size > 4 times of vector register size, store 4 times of vector register size at a time. [BZ #19881] * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add memset-sse2-unaligned-erms, memset-avx2-unaligned-erms and memset-avx512-unaligned-erms. * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list): Test __memset_chk_sse2_unaligned, __memset_chk_sse2_unaligned_erms, __memset_chk_avx2_unaligned, __memset_chk_avx2_unaligned_erms, __memset_chk_avx512_unaligned, __memset_chk_avx512_unaligned_erms, __memset_sse2_unaligned, __memset_sse2_unaligned_erms, __memset_erms, __memset_avx2_unaligned, __memset_avx2_unaligned_erms, __memset_avx512_unaligned_erms and __memset_avx512_unaligned. * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S: New file. * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S: Likewise. * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise. * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
Diffstat (limited to 'libio/bits/stdio-ldbl.h')
0 files changed, 0 insertions, 0 deletions