mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	Unflip i and j.
This commit is contained in:
		
							parent
							
								
									01a015747e
								
							
						
					
					
						commit
						12218a4c74
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -321,7 +321,7 @@ std::string RTLIL::Const::decode_string() const
 | 
				
			||||||
	if (i < n) {
 | 
						if (i < n) {
 | 
				
			||||||
		char ch = 0;
 | 
							char ch = 0;
 | 
				
			||||||
		for (int j = 0; j < (n - i); j++) {
 | 
							for (int j = 0; j < (n - i); j++) {
 | 
				
			||||||
			if (bits[j + i] == RTLIL::State::S1) {
 | 
								if (bits[i + j] == RTLIL::State::S1) {
 | 
				
			||||||
				ch |= 1 << j;
 | 
									ch |= 1 << j;
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
| 
						 | 
					@ -332,7 +332,7 @@ std::string RTLIL::Const::decode_string() const
 | 
				
			||||||
	for (; i >= 0; i -= 8) {
 | 
						for (; i >= 0; i -= 8) {
 | 
				
			||||||
		char ch = 0;
 | 
							char ch = 0;
 | 
				
			||||||
		for (int j = 0; j < 8; j++) {
 | 
							for (int j = 0; j < 8; j++) {
 | 
				
			||||||
			if (bits[j + i] == RTLIL::State::S1) {
 | 
								if (bits[i + j] == RTLIL::State::S1) {
 | 
				
			||||||
				ch |= 1 << j;
 | 
									ch |= 1 << j;
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue