random C/C++ question: is there any way to implement the chunking optimization w/o violating strict aliasing?https://github.com/esmil/musl/blob/master/src/string/memcpy.c …
-
-
Replying to @johnregehr
@johnregehr@ch3root AFAIK no or I would have done it. But there's actually no violation since may_alias is used; it just dep's on __GNUC__.1 reply 0 retweets 2 likes -
-
Replying to @volatile_void
@spun_off strlen needs may_alias added, but there's still no GNUC attribute to say "permitted to access outside the bounds of the object" :(
1 reply 0 retweets 0 likes -
Replying to @RichFelker
@spun_off There's a thread on the musl ml about at least documenting this stuff; performance diff is too crazy not to use it... :(
2 replies 0 retweets 1 like
@spun_off On my hw, roughly 3 bytes/cycle vs 1 byte/cycle for the runner-up strlen.
4:26 PM - 30 Jan 2016
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.