[haiku-commits] Re: haiku: hrev43558 - src/system/libroot/posix/string

  • From: Fredrik Holmqvist <fredrik.holmqvist@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 25 Dec 2011 23:34:26 +0100

2011/12/25 Jérôme Duval <korli@xxxxxxxxxxxxxxxx>:
> FWIW x86 should be using
> http://haiku.it.su.se:8180/source/xref/src/system/libroot/posix/glibc/arch/x86/strlen.S

And it does pretty much the same, further optimized for the arch and
using a bit more complex aligning but then checking several bytes at
once.

The more interesting question might be why the code is not optimized
to use the builtin versions. (In my case it might be because I run
with non-standard flags, but if I read Travis comment right it seems
to not depend on that.)

/Fredrik Holmqvist, TQH

Other related posts: