mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-09-12 08:06:34 -04:00
20 lines
349 B
C++
20 lines
349 B
C++
|
|
#include <stdio.h>
|
|
|
|
#include "filtergen.h"
|
|
|
|
namespace leansdr
|
|
{
|
|
namespace filtergen
|
|
{
|
|
|
|
void dump_filter(const char *name, int ncoeffs, float *coeffs)
|
|
{
|
|
fprintf(stderr, "%s = [", name);
|
|
for (int i = 0; i < ncoeffs; ++i)
|
|
fprintf(stderr, "%s %f", (i ? "," : ""), coeffs[i]);
|
|
fprintf(stderr, " ];\n");
|
|
}
|
|
|
|
} // filtergen
|
|
} // leansdr
|