MCPcopy Create free account
hub / github.com/Audio4Linux/JDSP4Linux / LLsinHalfTblFloat

Function LLsinHalfTblFloat

libjamesdsp/JdspImpResToolbox.c:10–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8#include "jdsp_header.h"
9
10void LLsinHalfTblFloat(float *dst, unsigned int n)
11{
12 const double twopi_over_n = 6.283185307179586476925286766559 / n;
13 for (unsigned int i = 0; i < n; ++i)
14 dst[i] = (float)sin(twopi_over_n * i);
15}
16typedef struct
17{
18 unsigned int xLen;

Callers 1

initMpsFFTDataFunction · 0.70

Calls 1

sinFunction · 0.50

Tested by

no test coverage detected