On Sun, 16 Jan 2011, Denys Vlasenko wrote: > On Sunday 16 January 2011 22:58, Douglas Mencken wrote: > > Here - only using union. > > Can you show me *the code* how to do it? > > Any ways to do it *I* see are so ugly > I don't dare to post them. > > > You know, casting pointers doesn't mean that > > they point to the same area. And doing something like > > my_super_data_type* ptr = (void*)blah is obviously a way to void.
What about the articles Douglas posted? On Sat, 15 Jan 2011, Douglas Mencken wrote: > > Understanding Strict Aliasing: > http://cellperformance.beyond3d.com/articles/2006/06/understanding-strict-aliasing.html > Strict aliasing in C: http://xania.org/200712/cpp-strict-aliasing ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ I'm not a C-expert, but there seems to be something there that makes sense, does it not? Cheers, -- Cristian _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
