mirror of
				https://github.com/f4exb/sdrangel.git
				synced 2025-11-03 21:20:31 -05:00 
			
		
		
		
	M17: Treillis code cleanup
This commit is contained in:
		
							parent
							
								
									bf5220a1f7
								
							
						
					
					
						commit
						7ca7dec872
					
				@ -88,12 +88,6 @@ struct NextStateTable
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
template <size_t N>
 | 
					 | 
				
			||||||
struct OutputTable
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
};
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Compute a cost table for a Trellis of size K, for input n of N,
 | 
					 * Compute a cost table for a Trellis of size K, for input n of N,
 | 
				
			||||||
 * and LLR size of LLR bits + 1. (i.e. LLR = 1 allows 2 bits to
 | 
					 * and LLR size of LLR bits + 1. (i.e. LLR = 1 allows 2 bits to
 | 
				
			||||||
@ -105,19 +99,6 @@ struct CostTable
 | 
				
			|||||||
    static constexpr int8_t Price = 1 << LLR;
 | 
					    static constexpr int8_t Price = 1 << LLR;
 | 
				
			||||||
    static constexpr size_t InputValues = 1 << N;
 | 
					    static constexpr size_t InputValues = 1 << N;
 | 
				
			||||||
    using cost_table_t = std::array<std::array<uint8_t, InputValues>, K>;
 | 
					    using cost_table_t = std::array<std::array<uint8_t, InputValues>, K>;
 | 
				
			||||||
 | 
					 | 
				
			||||||
    template <typename Trellis_>
 | 
					 | 
				
			||||||
    static constexpr cost_table_t makeCostTable()
 | 
					 | 
				
			||||||
    {
 | 
					 | 
				
			||||||
        cost_table_t result;
 | 
					 | 
				
			||||||
        for (size_t i = 0; i != K; ++i)
 | 
					 | 
				
			||||||
        {
 | 
					 | 
				
			||||||
            for (size_t j = 0; j != InputValues; ++j)
 | 
					 | 
				
			||||||
            {
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -136,8 +117,8 @@ struct Trellis
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    polynomials_t polynomials;
 | 
					    polynomials_t polynomials;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    Trellis(polynomials_t polys)
 | 
					    Trellis(polynomials_t polys) :
 | 
				
			||||||
    : polynomials(polys)
 | 
					        polynomials(polys)
 | 
				
			||||||
    {}
 | 
					    {}
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user