This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Committed: Fix xstormy16 build problems.


On 04/22/2010 01:04 PM, Nick Clifton wrote:
+  word_type hi_a = (a << 16);
+  word_type hi_b = (b << 16);

Maybe >> ?


+  if (hi_a == hi_b)
+    {
+      word_type low_a = (a & 0xff);
+      word_type low_b = (b & 0xff);

And 0xffff here?


Sorry if I'm being dumb :-)

Paolo


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]