]> git.ipfire.org Git - thirdparty/glibc.git/commit - ChangeLog.tile
tilegx: small performance fix for string routines
authorChris Metcalf <cmetcalf@tilera.com>
Fri, 11 May 2012 22:03:58 +0000 (18:03 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Mon, 14 May 2012 19:46:12 +0000 (15:46 -0400)
commit64d76ca0647fc8f2a8709be957a551e9b92f5b1b
treea56a70006d79bbb06d75e7048d956552e2cedc4b
parent575298fcd298bb3ff7d7ba0d0bceac9429ae2b5d
tilegx: small performance fix for string routines

We were multiplying a byte by 0x0101010101010101ULL to create a
constant for SIMD ops, but the compiler isn't good at optimizing
this case (the fact that one operand is a byte is lost by the time
it would be possible to do the optimization).  So instead we add
a helper routine that explicitly uses SIMD ops to create the constant.
ChangeLog.tile
sysdeps/tile/tilegx/memchr.c
sysdeps/tile/tilegx/memset.c
sysdeps/tile/tilegx/rawmemchr.c
sysdeps/tile/tilegx/strchr.c
sysdeps/tile/tilegx/strchrnul.c
sysdeps/tile/tilegx/string-endian.h
sysdeps/tile/tilegx/strrchr.c