mirror of
				https://github.com/saitohirga/WSJT-X.git
				synced 2025-10-31 13:10:19 -04:00 
			
		
		
		
	git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@5723 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
		
			
				
	
	
		
			27 lines
		
	
	
		
			601 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			601 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifndef JELINEK_H
 | |
| #define JELINEK_H
 | |
| 
 | |
| #include <stdint.h>
 | |
| 
 | |
| struct snode {
 | |
|     uint64_t encstate; // Encoder state
 | |
|     int gamma;		         // Cumulative metric to this node
 | |
|     unsigned int depth;               // depth of this node
 | |
|     unsigned int jpointer;
 | |
| };
 | |
| 
 | |
| struct snode *stack;
 | |
| 
 | |
| int jelinek(unsigned int *metric,
 | |
|             unsigned int *cycles,
 | |
|             unsigned char *data,
 | |
|             unsigned char *symbols,
 | |
|             unsigned int nbits,
 | |
|             unsigned int stacksize,
 | |
|             struct snode *stack,
 | |
|             int mettab[2][256],
 | |
|             unsigned int maxcycles);
 | |
| 
 | |
| #endif
 | |
| 
 |