<?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: Problem with bit wise operators</title>
	<atom:link href="https://www.emblogic.com/blog/04/problem-with-bit-wise-operators/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.emblogic.com/blog/04/problem-with-bit-wise-operators/</link>
	<description>Embedded System and ARM Training</description>
	<lastBuildDate>Mon, 07 Oct 2013 04:00:03 +0000</lastBuildDate>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.1</generator>
	<item>
		<title>By: kpeswani</title>
		<link>https://www.emblogic.com/blog/04/problem-with-bit-wise-operators/#comment-737</link>
		<dc:creator><![CDATA[kpeswani]]></dc:creator>
		<pubDate>Fri, 27 Apr 2012 11:44:36 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=2364#comment-737</guid>
		<description><![CDATA[THERE IS SMALL ERROR IN PREVIOUS POST...Pls ignore it

num = num &lt;&lt; 8;
the above line in char_pad() is of no use.

try this for bit representation..
int i=1;
int j;
for(j=0;j&lt;16;j++)
{
if(num &amp; i == 1)
printf(&quot;1\n&quot;);//or store 1
else
printf(&quot;0\n&quot;);
i&lt;&lt;=1;
}]]></description>
		<content:encoded><![CDATA[<p>THERE IS SMALL ERROR IN PREVIOUS POST&#8230;Pls ignore it</p>
<p>num = num &lt;&lt; 8;<br />
the above line in char_pad() is of no use.</p>
<p>try this for bit representation..<br />
int i=1;<br />
int j;<br />
for(j=0;j&lt;16;j++)<br />
{<br />
if(num &amp; i == 1)<br />
printf(&quot;1\n&quot;);//or store 1<br />
else<br />
printf(&quot;0\n&quot;);<br />
i&lt;&lt;=1;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kpeswani</title>
		<link>https://www.emblogic.com/blog/04/problem-with-bit-wise-operators/#comment-736</link>
		<dc:creator><![CDATA[kpeswani]]></dc:creator>
		<pubDate>Fri, 27 Apr 2012 11:43:29 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=2364#comment-736</guid>
		<description><![CDATA[num = num &lt;&lt; 8;
the above line in char_pad() is of no use.

try this for bit representation..
int i=1;
int j;
for(j=0;j&lt;16;j++)
{
if(num &amp; i == 1)
printf(&quot;1\n&quot;);//or store 1
else
printf(&quot;2\n&quot;);
i&lt;&lt;=1;
}]]></description>
		<content:encoded><![CDATA[<p>num = num &lt;&lt; 8;<br />
the above line in char_pad() is of no use.</p>
<p>try this for bit representation..<br />
int i=1;<br />
int j;<br />
for(j=0;j&lt;16;j++)<br />
{<br />
if(num &amp; i == 1)<br />
printf(&quot;1\n&quot;);//or store 1<br />
else<br />
printf(&quot;2\n&quot;);<br />
i&lt;&lt;=1;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nitin.sharma</title>
		<link>https://www.emblogic.com/blog/04/problem-with-bit-wise-operators/#comment-698</link>
		<dc:creator><![CDATA[nitin.sharma]]></dc:creator>
		<pubDate>Tue, 10 Apr 2012 04:07:48 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=2364#comment-698</guid>
		<description><![CDATA[In case of signed number,on 32 bit machine having integer length 4 bytes, MSB bit represents the sign.
in case of positive number it is zero and for negative number it is 1.

in my case i am trying to print bit representation of a number. and i am getting -1 instead of one even MSB is zero.]]></description>
		<content:encoded><![CDATA[<p>In case of signed number,on 32 bit machine having integer length 4 bytes, MSB bit represents the sign.<br />
in case of positive number it is zero and for negative number it is 1.</p>
<p>in my case i am trying to print bit representation of a number. and i am getting -1 instead of one even MSB is zero.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: msiddarth</title>
		<link>https://www.emblogic.com/blog/04/problem-with-bit-wise-operators/#comment-695</link>
		<dc:creator><![CDATA[msiddarth]]></dc:creator>
		<pubDate>Sun, 08 Apr 2012 10:39:42 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=2364#comment-695</guid>
		<description><![CDATA[could you elaborate more]]></description>
		<content:encoded><![CDATA[<p>could you elaborate more</p>
]]></content:encoded>
	</item>
</channel>
</rss>
