WSJT-X/lib/qra/qra65/qra65_subs.c
Joe Taylor 9fe70e8a02 Add routines needed for QRA65code.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6795 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-06-22 20:45:29 +00:00

22 lines
557 B
C

// qra65_subs.c
// Fortran interface routines for QRA65
#include "qra65.h"
#include <stdio.h>
void qra65_enc_(int x[], int y[])
{
int ncall=0xf70c238; //K1ABC
qra65codec *codec = qra65_init(0,ncall); //codec for ncall
qra65_encode(codec, y, x);
}
void qra65_dec_(float r[], int xdec[], int* rc)
{
// int ncall=0xf70c238; //K1ABC
int ncall=0x890c60c; //KA1ABC
int i;
qra65codec *codec = qra65_init(1,ncall); //codec for ncall
*rc = qra65_decode(codec,xdec,r);
}