<?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>Comments on: Clever Digital I/O handling in C</title>
	<atom:link href="http://www.youritronics.com/clever-digital-io-handling-in-c/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.youritronics.com/clever-digital-io-handling-in-c/</link>
	<description>DIY, Electronics, IT, Gadgets</description>
	<lastBuildDate>Sat, 28 Jan 2012 20:46:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Laci</title>
		<link>http://www.youritronics.com/clever-digital-io-handling-in-c/comment-page-1/#comment-6151</link>
		<dc:creator>Laci</dc:creator>
		<pubDate>Mon, 16 Mar 2009 11:18:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.youritronics.com/?p=1852#comment-6151</guid>
		<description>I personally don&#039;t like to paranthizes everything, since &quot;a&quot; will be always a register or variable name, and &quot;p&quot; a number it will work just fine. Its everybody&#039;s personal choice or coding style how many paranthizes uses above the minimum required.</description>
		<content:encoded><![CDATA[<p>I personally don&#8217;t like to paranthizes everything, since &#8220;a&#8221; will be always a register or variable name, and &#8220;p&#8221; a number it will work just fine. Its everybody&#8217;s personal choice or coding style how many paranthizes uses above the minimum required.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marvin</title>
		<link>http://www.youritronics.com/clever-digital-io-handling-in-c/comment-page-1/#comment-6127</link>
		<dc:creator>Marvin</dc:creator>
		<pubDate>Wed, 11 Mar 2009 09:50:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.youritronics.com/?p=1852#comment-6127</guid>
		<description>Please be aware, that you should fully parenthizes all macro arguments and the macro itself. The correct macro definition would therefore be:

#define IS_BIT(a,p)    ((a) &amp; (1 &lt;&lt; (p)))      // test the a variable p bit
#define SET_BIT(a,p)   ((a) &#124;= 1 &lt;&lt; (p))       // set in a the p bit
#define CLR_BIT(a,p)   ((a) &amp;= ~(1 &lt;&lt; (p)))    // clear in a the p bit</description>
		<content:encoded><![CDATA[<p>Please be aware, that you should fully parenthizes all macro arguments and the macro itself. The correct macro definition would therefore be:</p>
<p>#define IS_BIT(a,p)    ((a) &amp; (1 &lt;&lt; (p)))      // test the a variable p bit<br />
#define SET_BIT(a,p)   ((a) |= 1 &lt;&lt; (p))       // set in a the p bit<br />
#define CLR_BIT(a,p)   ((a) &amp;= ~(1 &lt;&lt; (p)))    // clear in a the p bit</p>
]]></content:encoded>
	</item>
</channel>
</rss>

