<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: How do I swap thy bytes? Let me count the ways</title>
	<atom:link href="http://boredzo.org/blog/archives/2007-04-28/how-do-i-swap-thy-bytes-let-me-count-the-ways/feed" rel="self" type="application/rss+xml" />
	<link>http://boredzo.org/blog/archives/2007-04-28/how-do-i-swap-thy-bytes-let-me-count-the-ways</link>
	<description>The personal weblog of Peter Hosey.</description>
	<pubDate>Fri, 05 Dec 2008 13:45:29 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
		<item>
		<title>By: Peter Hosey</title>
		<link>http://boredzo.org/blog/archives/2007-04-28/how-do-i-swap-thy-bytes-let-me-count-the-ways#comment-31135</link>
		<dc:creator>Peter Hosey</dc:creator>
		<pubDate>Sun, 29 Apr 2007 02:38:16 +0000</pubDate>
		<guid isPermaLink="false">http://boredzo.org/blog/archives/2007-04-28/how-do-i-swap-thy-bytes-let-me-count-the-ways#comment-31135</guid>
		<description>Ah, good catch—I had misread the OSByteOrder.h header. It looks like this:

&lt;blockquote&gt;&lt;pre&gt;#if defined(__BIG_ENDIAN__)
//All host=big implementations here
#elif defined(__LITTLE_ENDIAN__)
//All host=little implementations here
#endif&lt;/pre&gt;&lt;/blockquote&gt;

I didn't see the #ifs at first.

For posterity, here's what that section said when Blake wrote his comment: “The Const versions always swap; the others swap conditionally.”.</description>
		<content:encoded><![CDATA[<p>Ah, good catch—I had misread the OSByteOrder.h header. It looks like this:</p>
<blockquote cite="http://boredzo.org/blog/archives/2007-04-28/how-do-i-swap-thy-bytes-let-me-count-the-ways#comment-"><pre>#if defined(__BIG_ENDIAN__)
//All host=big implementations here
#elif defined(__LITTLE_ENDIAN__)
//All host=little implementations here
#endif</pre>
</blockquote>
<p>I didn't see the #ifs at first.</p>
<p>For posterity, here's what that section said when Blake wrote his comment: “The Const versions always swap; the others swap conditionally.”.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blake C.</title>
		<link>http://boredzo.org/blog/archives/2007-04-28/how-do-i-swap-thy-bytes-let-me-count-the-ways#comment-31035</link>
		<dc:creator>Blake C.</dc:creator>
		<pubDate>Sun, 29 Apr 2007 01:51:06 +0000</pubDate>
		<guid isPermaLink="false">http://boredzo.org/blog/archives/2007-04-28/how-do-i-swap-thy-bytes-let-me-count-the-ways#comment-31035</guid>
		<description>"The Const versions always swap; the others swap conditionally."

I'm not sure what you mean- for example, OSSwapInt32 always swaps...</description>
		<content:encoded><![CDATA[<p>"The Const versions always swap; the others swap conditionally."</p>
<p>I'm not sure what you mean- for example, OSSwapInt32 always swaps...</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.183 seconds -->
