Browse Source

m68k: cosmetics (less C-ism)

git-svn-id: trunk@35001 -
Károly Balogh 8 years ago
parent
commit
74c1f2aec9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      compiler/m68k/cgcpu.pas

+ 2 - 2
compiler/m68k/cgcpu.pas

@@ -2291,7 +2291,7 @@ unit cgcpu;
               a_load_reg_reg(list,size,OS_INT,reg,hreg);
               a_load_reg_reg(list,size,OS_INT,reg,hreg);
 
 
             for i:=1 to bsrqword(a) do
             for i:=1 to bsrqword(a) do
-              if ((a >> i) and 1) = 1 then
+              if ((a shr i) and 1) = 1 then
                 begin
                 begin
                   if firstmov then
                   if firstmov then
                     begin
                     begin
@@ -2312,7 +2312,7 @@ unit cgcpu;
             { doing subtractions }
             { doing subtractions }
             a_load_const_reg(list,OS_INT,0,hreg);
             a_load_const_reg(list,OS_INT,0,hreg);
             for i:=0 to bsrqword(submask) do
             for i:=0 to bsrqword(submask) do
-              if ((submask >> i) and 1) = 1 then
+              if ((submask shr i) and 1) = 1 then
                 begin
                 begin
                   a_op_const_reg(list,OP_SHL,OS_INT,i-lastshift,reg);
                   a_op_const_reg(list,OP_SHL,OS_INT,i-lastshift,reg);
                   a_op_reg_reg(list,OP_SUB,OS_INT,reg,hreg);
                   a_op_reg_reg(list,OP_SUB,OS_INT,reg,hreg);