Don't call __delay_4cycles for 0 cycle delay - takes a really long time. (#11586)
This commit is contained in:
		@@ -75,8 +75,8 @@
 | 
			
		||||
      }
 | 
			
		||||
      #undef MAXNOPS
 | 
			
		||||
    }
 | 
			
		||||
    else
 | 
			
		||||
      __delay_4cycles(x / 4);
 | 
			
		||||
    else if ((x >>= 2))
 | 
			
		||||
      __delay_4cycles(x);
 | 
			
		||||
  }
 | 
			
		||||
  #undef nop
 | 
			
		||||
 | 
			
		||||
@@ -114,8 +114,8 @@
 | 
			
		||||
 | 
			
		||||
      #undef MAXNOPS
 | 
			
		||||
    }
 | 
			
		||||
    else
 | 
			
		||||
      __delay_4cycles(x / 4);
 | 
			
		||||
    else if ((x >>= 2))
 | 
			
		||||
      __delay_4cycles(x);
 | 
			
		||||
  }
 | 
			
		||||
  #undef nop
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user