<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	〈[Kernel] Linux Kernel 內的 Macro likely() 和 unlikely()〉的留言	</title>
	<atom:link href="https://blog.richliu.com/2007/02/01/428/kernel-linux-kernel-%E5%85%A7%E7%9A%84-macro-likely-%E5%92%8C-unlik/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.richliu.com/2007/02/01/428/kernel-linux-kernel-%e5%85%a7%e7%9a%84-macro-likely-%e5%92%8c-unlik/</link>
	<description>Linux, 工作, 生活, 家人</description>
	<lastBuildDate>Tue, 05 Jun 2012 03:51:12 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.2</generator>
	<item>
		<title>
		留言者: 匿名訪客		</title>
		<link>https://blog.richliu.com/2007/02/01/428/kernel-linux-kernel-%e5%85%a7%e7%9a%84-macro-likely-%e5%92%8c-unlik/#comment-45236</link>

		<dc:creator><![CDATA[匿名訪客]]></dc:creator>
		<pubDate>Tue, 05 Jun 2012 03:51:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.richliu.com/2007/02/01/428/#comment-45236</guid>

					<description><![CDATA[long __builtin_expect (long EXP, long C)
#define unlikely(x) __builtin_expect(!!(x), 0)
the built-in are that it is expected that EXP == C
==&#062; unlikely(x) 表示期望 x == 0

上面的觀念............有點問題]]></description>
			<content:encoded><![CDATA[<p>long __builtin_expect (long EXP, long C)<br />
#define unlikely(x) __builtin_expect(!!(x), 0)<br />
the built-in are that it is expected that EXP == C<br />
==&gt; unlikely(x) 表示期望 x == 0</p>
<p>上面的觀念&#8230;&#8230;&#8230;&#8230;有點問題</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		留言者: 匿名訪客		</title>
		<link>https://blog.richliu.com/2007/02/01/428/kernel-linux-kernel-%e5%85%a7%e7%9a%84-macro-likely-%e5%92%8c-unlik/#comment-30663</link>

		<dc:creator><![CDATA[匿名訪客]]></dc:creator>
		<pubDate>Wed, 01 Aug 2007 08:32:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.richliu.com/2007/02/01/428/#comment-30663</guid>

					<description><![CDATA[最后结论说反了吧]]></description>
			<content:encoded><![CDATA[<p>最后结论说反了吧</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		留言者: jsli		</title>
		<link>https://blog.richliu.com/2007/02/01/428/kernel-linux-kernel-%e5%85%a7%e7%9a%84-macro-likely-%e5%92%8c-unlik/#comment-19831</link>

		<dc:creator><![CDATA[jsli]]></dc:creator>
		<pubDate>Thu, 01 Feb 2007 14:40:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.richliu.com/2007/02/01/428/#comment-19831</guid>

					<description><![CDATA[現在手邊沒有 cross-compiler 可以試，不過 ARM 的 instruction set 有 conditional execution 的 flag, 可以取代部份的 branch, 再加上 ARM9 5-stage pipeline 和相對較小的 cache, Branch prediction 就沒那麼重要了。Branch prediction 通常是為了避免 pipeline stall 和 cache miss penalty, 這部份 x86 要嚴重多了。]]></description>
			<content:encoded><![CDATA[<p>現在手邊沒有 cross-compiler 可以試，不過 ARM 的 instruction set 有 conditional execution 的 flag, 可以取代部份的 branch, 再加上 ARM9 5-stage pipeline 和相對較小的 cache, Branch prediction 就沒那麼重要了。Branch prediction 通常是為了避免 pipeline stall 和 cache miss penalty, 這部份 x86 要嚴重多了。</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
