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 …
@johnregehr Never mind, I think I'm wrong. I think, indeed, you cannot do the chunking optimization in strict ISO C, in general.
-
-
@BRIAN_____ are you reading C99 or C11? does C++ differ meaningfully here? -
@johnregehr I am reading n1548.pdf. -
@BRIAN_____@johnregehr n1570.pdf is newer.
End of conversation
New conversation -
-
-
@BRIAN_____@johnregehr What precisely is the chunking optimization? -
@sevenps@BRIAN_____ faster memcpy etc. using 8-byte (or whatever) chunks -
@johnregehr@BRIAN_____ As far as I can tell something like this doesn't violate anything and does what you expect: http://goo.gl/s8RpkT -
@sevenps@BRIAN_____ cute! but you are putting a lot of trust in the optimizer.
End of conversation
New conversation -
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.