<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>REV &#8211; richliu&#039;s blog</title>
	<atom:link href="https://blog.richliu.com/tag/rev/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.richliu.com</link>
	<description>Linux, 工作, 生活, 家人</description>
	<lastBuildDate>Fri, 02 Apr 2010 07:16:15 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.2</generator>
	<item>
		<title>ARMv6 的 Word Swap 指令</title>
		<link>https://blog.richliu.com/2009/05/23/761/armv6-%e7%9a%84-word-swap-%e6%8c%87%e4%bb%a4/</link>
					<comments>https://blog.richliu.com/2009/05/23/761/armv6-%e7%9a%84-word-swap-%e6%8c%87%e4%bb%a4/#respond</comments>
		
		<dc:creator><![CDATA[richliu]]></dc:creator>
		<pubDate>Fri, 22 May 2009 16:20:11 +0000</pubDate>
				<category><![CDATA[ARM]]></category>
		<category><![CDATA[Embedded]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[ARMv6]]></category>
		<category><![CDATA[REV]]></category>
		<guid isPermaLink="false">http://blog.richliu.com/?p=761</guid>

					<description><![CDATA[<p>ARMv6 加入了幾個好用的 Swap 指令. 不需要用軟體算來算去 請參考 http://www.arm.c [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://blog.richliu.com/2009/05/23/761/armv6-%e7%9a%84-word-swap-%e6%8c%87%e4%bb%a4/">ARMv6 的 Word Swap 指令</a> appeared first on <a rel="nofollow" href="https://blog.richliu.com">richliu&#039;s blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>ARMv6 加入了幾個好用的 Swap 指令. 不需要用軟體算來算去<br />
請參考 http://www.arm.com/pdfs/ARMv6_Architecture.pdf</p>
<p>REV<br />
REV16<br />
REVSH</p>
<p><a href="http://www.flickr.com/photos/richliu_tw/3486040982/" title="Flickr 上 richliu(有錢劉) 的 ARM_REV" target="_blank" rel="noopener"><img fetchpriority="high" decoding="async" src="http://farm4.static.flickr.com/3567/3486040982_f2f5228deb_o.png" width="692" height="384" alt="ARM_REV" /></a></p>
<p>最常用的應該是 REV 吧.</p>
<p>Realview inline assembly 很簡單.</p>
<blockquote><p>[C]unsigned int tmp = 0x12345678;<br />
__asm{<br />
         REV tmp, tmp<br />
}[/C]</p></blockquote>
<p>GNU C++ inline assembly 為(未測)</p>
<p>[C]<br />
unsigned int tmp = 0x12345678;<br />
__asm__ __volatile__ (<br />
   &#8220;REV %0,%0;&#8221; : &#8220;=r&#8221;(tmp) : &#8220;r&#8221;(tmp):&#8221;r5&#8221;);<br />
);[/C]</p>
<p>The post <a rel="nofollow" href="https://blog.richliu.com/2009/05/23/761/armv6-%e7%9a%84-word-swap-%e6%8c%87%e4%bb%a4/">ARMv6 的 Word Swap 指令</a> appeared first on <a rel="nofollow" href="https://blog.richliu.com">richliu&#039;s blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.richliu.com/2009/05/23/761/armv6-%e7%9a%84-word-swap-%e6%8c%87%e4%bb%a4/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
