tag:blogger.com,1999:blog-5246987755651065286.post1715376818208133460..comments2024-02-22T16:15:42.388-08:00Comments on cbloom rants: 02-25-09 - Cast with unioncbloomhttp://www.blogger.com/profile/10714564834899413045noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-5246987755651065286.post-21734362582099588742009-02-26T17:30:00.000-08:002009-02-26T17:30:00.000-08:00It also has the advantage of actually being techni...It also has the advantage of actually being technically correct (and not just practically so) based on a strict reading of the C language spec. Type punning (except char* in certain cases) is actually not guaranteed to work because of strict aliasing.won3dhttps://www.blogger.com/profile/09787472194187459747noreply@blogger.comtag:blogger.com,1999:blog-5246987755651065286.post-50319422319144885332009-02-26T15:15:00.000-08:002009-02-26T15:15:00.000-08:00Hmm, that's disturbingly simple and rational.Hmm, that's disturbingly simple and rational.cbloomhttps://www.blogger.com/profile/10714564834899413045noreply@blogger.comtag:blogger.com,1999:blog-5246987755651065286.post-57332429640407204162009-02-26T15:02:00.000-08:002009-02-26T15:02:00.000-08:00Have you tried just using memcpy? At least on gcc ...Have you tried just using memcpy? At least on gcc it is a compiler intrinsic, and for small, constant copies it should do what you want.won3dhttps://www.blogger.com/profile/09787472194187459747noreply@blogger.com