]> sourceware.org Git - glibc.git/commitdiff
x86: Expand the comment on when REP STOSB is used on memset
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 8 Feb 2024 13:08:40 +0000 (10:08 -0300)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 13 Feb 2024 16:49:43 +0000 (08:49 -0800)
Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S

index 9984c3ca0fafab6aa96acffbf5be6b05338d7d0b..97839a22483b0613f5dcf7122c38d2dc3c64f5ca 100644 (file)
@@ -21,7 +21,9 @@
    2. If size is less than VEC, use integer register stores.
    3. If size is from VEC_SIZE to 2 * VEC_SIZE, use 2 VEC stores.
    4. If size is from 2 * VEC_SIZE to 4 * VEC_SIZE, use 4 VEC stores.
-   5. If size is more to 4 * VEC_SIZE, align to 4 * VEC_SIZE with
+   5. On machines ERMS feature, if size is greater or equal than
+      __x86_rep_stosb_threshold then REP STOSB will be used.
+   6. If size is more to 4 * VEC_SIZE, align to 4 * VEC_SIZE with
       4 VEC stores and store 4 * VEC at a time until done.  */
 
 #include <sysdep.h>
This page took 0.047974 seconds and 5 git commands to generate.