<?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>SHAOS &#187; altivec</title>
	<atom:link href="https://shaos.net/blog/category/altivec/feed" rel="self" type="application/rss+xml" />
	<link>https://shaos.net/blog</link>
	<description>{ Personal Blog of Shaos }</description>
	<lastBuildDate>Mon, 04 Aug 2025 00:15:41 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.1</generator>
	<item>
		<title>Black big-endian and little-endian</title>
		<link>https://shaos.net/blog/2009/08/black-big-endian-and-little-endian.html</link>
		<comments>https://shaos.net/blog/2009/08/black-big-endian-and-little-endian.html#comments</comments>
		<pubDate>Fri, 21 Aug 2009 04:52:00 +0000</pubDate>
		<dc:creator><![CDATA[Shaos]]></dc:creator>
				<category><![CDATA[altivec]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[cube]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[photo]]></category>
		<category><![CDATA[ppc]]></category>

		<guid isPermaLink="false">http://shaos.net/blog4/?p=37</guid>
		<description><![CDATA[This is my home working place where I can port software from little-endian machine to big-endian:Red table bought in IKEA. Right-bottom: Systemax server with Intel Core 2 Duo 2.6 ГГц (Slackware 12.2). Right-top: PowerMac G4 Cube (colored to black) with Debian 5.0 and preloaded libfreevec. Left-bottom: subwoofer Logitech, power adapter for Cube and Gigabit switch. [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>This is my home working place where I can port software from little-endian machine to big-endian:<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://shaos.net/blog/uploaded_images/ShaosComps2009-big-756732.jpg"><img style="cursor: pointer; width: 300px; height: 400px;" src="http://shaos.net/blog/uploaded_images/ShaosComps2009-big-756332.jpg" alt="" border="0" /></a><br />Red table bought in IKEA. Right-bottom: Systemax server with Intel Core 2 Duo 2.6 ГГц (Slackware 12.2). Right-top: <a href="http://shaos.net/blog/2009/02/g4-cube.html">PowerMac G4 Cube</a> (<a href="http://shaos.net/blog/2009/02/my-g4-cube-turns-black.html">colored to black</a>) with Debian 5.0 and <a href="http://shaos.net/blog/2009/03/vectorized-memcpy-on-g4-cube.html">preloaded libfreevec</a>. Left-bottom: subwoofer Logitech, power adapter for Cube and Gigabit switch. Left-top: UPS CyberPower 1500AVR. In the center under the table: KVM IOGEAR (switching USB keyboard+mouse and VGA between both machines). In the center on the table: display SAMSUNG SyncMaster 204B (20.5&#8242; with ratio 4:3), Logitech audio speakers and microphone RadioShack. Also you can see black &#8220;Das Keyboard&#8221; that doesn&#8217;t have any characters on it <img src="https://shaos.net/blog/wp-includes/images/smilies/icon_wink.gif" alt=";)" class="wp-smiley" /> </p>
]]></content:encoded>
			<wfw:commentRss>https://shaos.net/blog/2009/08/black-big-endian-and-little-endian.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vectorized memcpy on G4 Cube</title>
		<link>https://shaos.net/blog/2009/03/vectorized-memcpy-on-g4-cube.html</link>
		<comments>https://shaos.net/blog/2009/03/vectorized-memcpy-on-g4-cube.html#comments</comments>
		<pubDate>Tue, 03 Mar 2009 00:41:00 +0000</pubDate>
		<dc:creator><![CDATA[Shaos]]></dc:creator>
				<category><![CDATA[altivec]]></category>
		<category><![CDATA[cube]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[ppc]]></category>

		<guid isPermaLink="false">http://shaos.net/blog4/?p=32</guid>
		<description><![CDATA[Again I tested new hardware using my memcpy benchmark &#8211; now for my 1st desktop on Intel Core 2 Duo 2.6 GHz and my 2nd desktop on PowerPC G4 450 MHz (black G4 Cube). Here you can see not-aligned (nal) and aligned (al) results and also &#8220;vectorized&#8221; results (G4-450v-nal and G4-450v-al) where memcpy was AltiVec [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Again I tested new hardware using my <a href="http://shaos.net/blog/files/test_g4.c">memcpy benchmark</a> &#8211; now for my 1st desktop on Intel Core 2 Duo 2.6 GHz and my 2nd desktop on PowerPC G4 450 MHz (<a href="http://shaos.net/blog/2009/02/my-g4-cube-turns-black.html">black G4 Cube</a>). Here you can see not-aligned (nal) and aligned (al) results and also &#8220;vectorized&#8221; results (G4-450v-nal and G4-450v-al) where <span style="font-style: italic;">memcpy</span> was AltiVec optimized version from <a href="http://www.codex.gr/content/libfreevec_104">libfreevec v1.0.4</a>.</p>
<p><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://shaos.net/blog/uploaded_images/memcpy-cube-739321.png"><img style="cursor: pointer; width: 400px; height: 360px;" src="http://shaos.net/blog/uploaded_images/memcpy-cube-739317.png" alt="" border="0" /></a></p>
<p>P.S. If you want optimized AltiVec versions of such functions as <span style="font-style: italic;">bmove512, memccpy, memchr, memcmp, memcpy, memfrob, memmove, mempcpy, memrchr, memset, strcmp, strcpy, strlen, strncmp, strncpy, strnlen</span> and <span style="font-style: italic;">swab</span> for everything in your Linux system, then just put (of course after successful libfreevec installation) line <span style="font-style: italic;">/usr/local/lib/libfreevec_libc.</span><span style="color: rgb(32, 32, 32);"><span style="font-style: italic;">so</span> to file </span><span style="font-family: monospace;"></span><span style="font-style: italic;">/etc/ld.</span><span style="color: rgb(32, 32, 32); font-style: italic;">so</span><span style="font-style: italic;">.</span><span style="color: rgb(32, 32, 32);"><span style="font-style: italic;">preload</span> (you can create this file if it&#8217;s not yet available) &#8211; thanks to </span><a href="http://www.freevec.org/content/howto_using_libfreevec_using_ld_preload">Konstantinos Margaritis</a><span style="color: rgb(32, 32, 32);"> (author of <a href="http://www.freevec.org/">libfreevec</a>)!</p>
<p></span></p>
]]></content:encoded>
			<wfw:commentRss>https://shaos.net/blog/2009/03/vectorized-memcpy-on-g4-cube.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vectorized memcpy</title>
		<link>https://shaos.net/blog/2008/04/vectorized-memcpy.html</link>
		<comments>https://shaos.net/blog/2008/04/vectorized-memcpy.html#comments</comments>
		<pubDate>Tue, 29 Apr 2008 11:28:00 +0000</pubDate>
		<dc:creator><![CDATA[Shaos]]></dc:creator>
				<category><![CDATA[altivec]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[macosx]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[powerbook]]></category>
		<category><![CDATA[powermac]]></category>
		<category><![CDATA[ppc]]></category>

		<guid isPermaLink="false">http://shaos.net/blog4/?p=18</guid>
		<description><![CDATA[Some benchmarks of memcpy function on my Compaq Presario S6000NX Celeron 2.7 GHz (Linux), PowerMac G4 400 MHz (Linux) and PowerBook G4 1.67 GHz (Linux and Mac OS X): As we can see vectorized memcpy on PowerPC G4 1.67 GHz almost twice as fast as Celeron 2.7 GHz (which is sometimes similar to speed of [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Some benchmarks of <span style="font-style: italic;">memcpy</span> function on my Compaq Presario S6000NX Celeron 2.7 GHz (Linux), PowerMac G4 400 MHz (Linux) and PowerBook G4 1.67 GHz (Linux and Mac OS X):</p>
<p><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://shaos.net/blog/uploaded_images/memcpy-736651.png"><img style="cursor: pointer;" src="http://shaos.net/blog/uploaded_images/memcpy-736646.png" alt="" border="0" /></a></p>
<p>As we can see vectorized <span style="font-style: italic;">memcpy</span> on PowerPC G4 1.67 GHz almost twice as fast as Celeron 2.7 GHz (which is sometimes similar to speed of vectorized <span style="font-style: italic;">memcpy</span> on PowerPC G4 400 MHz). Also we see that Mac OS X has vectorized <span style="font-style: italic;">memcpy</span> by default. See source code of this test: <a href="http://shaos.net/blog/files/test_g4.c">files/test_g4.c</a> (2.5K)</p>
]]></content:encoded>
			<wfw:commentRss>https://shaos.net/blog/2008/04/vectorized-memcpy.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Full results for benchsuite on G4 1.67 GHz</title>
		<link>https://shaos.net/blog/2008/04/full-results-for-benchsuite-on-g4-1-67-ghz.html</link>
		<comments>https://shaos.net/blog/2008/04/full-results-for-benchsuite-on-g4-1-67-ghz.html#comments</comments>
		<pubDate>Tue, 29 Apr 2008 00:49:00 +0000</pubDate>
		<dc:creator><![CDATA[Shaos]]></dc:creator>
				<category><![CDATA[altivec]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[powerbook]]></category>
		<category><![CDATA[ppc]]></category>

		<guid isPermaLink="false">http://shaos.net/blog4/?p=17</guid>
		<description><![CDATA[Full run of SVN version of freevec&#8216;s benchsuite takes more than two days on my PowerBook G4 1.67 GHz. This is archive with sqlite DB and SQL: files/g4_1670_080428.zip]]></description>
				<content:encoded><![CDATA[<p>Full run of SVN version of <a href="http://freevec.org/">freevec</a>&#8216;s <a href="http://www.codex.gr/content/benchsuite_102">benchsuite</a> takes more than two days on my <a href="http://shaos.net/blog/2008/04/refurbished-15-powerbook-g4.html">PowerBook G4 1.67 GHz</a>. This is archive with sqlite DB and SQL: <a href="http://shaos.net/blog/files/g4_1670_080428.zip">files/g4_1670_080428.zip</a></p>
]]></content:encoded>
			<wfw:commentRss>https://shaos.net/blog/2008/04/full-results-for-benchsuite-on-g4-1-67-ghz.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Some vectorization for my PowerMac G4</title>
		<link>https://shaos.net/blog/2008/04/some-vectorization-for-my-powermac-g4.html</link>
		<comments>https://shaos.net/blog/2008/04/some-vectorization-for-my-powermac-g4.html#comments</comments>
		<pubDate>Sat, 26 Apr 2008 23:19:00 +0000</pubDate>
		<dc:creator><![CDATA[Shaos]]></dc:creator>
				<category><![CDATA[altivec]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[powermac]]></category>
		<category><![CDATA[ppc]]></category>

		<guid isPermaLink="false">http://shaos.net/blog4/?p=16</guid>
		<description><![CDATA[Another test of libfreevec-1.0.3 under the same Debian 4.0 &#8220;etch&#8221; as at previous time, but now on my PowerMac G4 400 MHz: Archive with original data files: files/g4_400_tests_080426.zip]]></description>
				<content:encoded><![CDATA[<p>Another test of <a href="http://www.codex.gr/content/libfreevec_103">libfreevec-1.0.3</a> under the same Debian 4.0 &#8220;etch&#8221; as at previous <a href="http://shaos.net/blog/2008/04/some-vectorization-for-my-powerbook-g4.html">time</a>, but now on my <a href="http://shaos.net/blog/2008/04/powermac-g4-400mhz.html">PowerMac G4 400 MHz</a>:</p>
<p><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://shaos.net/blog/uploaded_images/g4_400_bmove512-761124.gif"><img style="cursor: pointer;" src="http://shaos.net/blog/uploaded_images/g4_400_bmove512-761121.gif" alt="" border="0" /></a><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://shaos.net/blog/uploaded_images/g4_400_memcpy-745718.gif"><img style="cursor: pointer;" src="http://shaos.net/blog/uploaded_images/g4_400_memcpy-745715.gif" alt="" border="0" /></a><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://shaos.net/blog/uploaded_images/g4_400_memset-725981.gif"><img style="cursor: pointer;" src="http://shaos.net/blog/uploaded_images/g4_400_memset-725978.gif" alt="" border="0" /></a><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://shaos.net/blog/uploaded_images/g4_400_strcpy-710191.gif"><img style="cursor: pointer;" src="http://shaos.net/blog/uploaded_images/g4_400_strcpy-710188.gif" alt="" border="0" /></a><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://shaos.net/blog/uploaded_images/g4_400_strlen-791138.gif"><img style="cursor: pointer;" src="http://shaos.net/blog/uploaded_images/g4_400_strlen-791135.gif" alt="" border="0" /></a></p>
<p>Archive with original data files: <a href="http://shaos.net/blog/files/g4_400_tests_080426.zip">files/g4_400_tests_080426.zip</a></p>
]]></content:encoded>
			<wfw:commentRss>https://shaos.net/blog/2008/04/some-vectorization-for-my-powermac-g4.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Some vectorization for my PowerBook G4</title>
		<link>https://shaos.net/blog/2008/04/some-vectorization-for-my-powerbook-g4.html</link>
		<comments>https://shaos.net/blog/2008/04/some-vectorization-for-my-powerbook-g4.html#comments</comments>
		<pubDate>Sat, 26 Apr 2008 15:29:00 +0000</pubDate>
		<dc:creator><![CDATA[Shaos]]></dc:creator>
				<category><![CDATA[altivec]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[powerbook]]></category>
		<category><![CDATA[ppc]]></category>

		<guid isPermaLink="false">http://shaos.net/blog4/?p=15</guid>
		<description><![CDATA[Some benchmarks of libfreevec-1.0.3 on my PowerBook G4 1.67 GHz under Debian 4.0 &#8220;etch&#8221;. Tests were prepared by benchsuite-1.0.2 with little help from OpenOffice.org Calc. Thanks to Konstantinos Margaritis for excellent work! Archive with original data files: files/g4_1670_tests_080425.zip]]></description>
				<content:encoded><![CDATA[<p>Some benchmarks of <a href="http://www.codex.gr/content/libfreevec_103">libfreevec-1.0.3</a> on my <a href="http://shaos.net/blog/2008/04/refurbished-15-powerbook-g4.html">PowerBook G4 1.67 GHz</a> under Debian 4.0 &#8220;etch&#8221;. Tests were prepared by <a href="http://www.codex.gr/content/benchsuite_102">benchsuite-1.0.2</a> with little help from OpenOffice.org Calc. Thanks to <a href="http://freevec.org/">Konstantinos Margaritis</a> for excellent work!</p>
<p><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://shaos.net/blog/uploaded_images/g4_1670_bmove512-770018.gif"><img style="cursor: pointer;" src="http://shaos.net/blog/uploaded_images/g4_1670_bmove512-770004.gif" alt="" border="0" /></a><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://shaos.net/blog/uploaded_images/g4_1670_memcpy-799479.gif"><img style="cursor: pointer;" src="http://shaos.net/blog/uploaded_images/g4_1670_memcpy-799472.gif" alt="" border="0" /></a><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://shaos.net/blog/uploaded_images/g4_1670_memset-752975.gif"><img style="cursor: pointer;" src="http://shaos.net/blog/uploaded_images/g4_1670_memset-752973.gif" alt="" border="0" /></a><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://shaos.net/blog/uploaded_images/g4_1670_strcpy-770190.gif"><img style="cursor: pointer;" src="http://shaos.net/blog/uploaded_images/g4_1670_strcpy-770182.gif" alt="" border="0" /></a><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://shaos.net/blog/uploaded_images/g4_1670_strlen-789123.gif"><img style="cursor: pointer;" src="http://shaos.net/blog/uploaded_images/g4_1670_strlen-789119.gif" alt="" border="0" /></a><br />Archive with original data files: <a href="http://shaos.net/blog/files/g4_1670_tests_080425.zip">files/g4_1670_tests_080425.zip</a></p>
]]></content:encoded>
			<wfw:commentRss>https://shaos.net/blog/2008/04/some-vectorization-for-my-powerbook-g4.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
