LMMS
Loading...
Searching...
No Matches
ladspa-util.h File Reference
#include <math.h>
#include <stdint.h>
#include "config.h"

Go to the source code of this file.

Classes

union  fixp16
union  fixp32
union  ls_pcast32

Macros

#define _USE_MATH_DEFINES
#define LN2R   1.442695041f
#define DN_CHECK(x, l)
#define LIMIT(v, l, u)
#define MOD(v, m)
#define NEG_MOD(v, m)
#define DB_CO(g)
#define CO_DB(v)
#define LIN_INTERP(f, a, b)
#define f_abs(j)
#define f_exp(x)

Functions

long int lrintf (float x)
static float flush_to_zero (float f)
static void round_to_zero (volatile float *f)
static float f_max (float x, float a)
static float f_min (float x, float b)
static float f_clamp (float x, float a, float b)
static float cube_interp (const float fr, const float inm1, const float in, const float inp1, const float inp2)
static float f_sin_sq (float angle)
static int f_round (float f)
static int f_trunc (float f)
static float f_pow2 (float x)

Macro Definition Documentation

◆ _USE_MATH_DEFINES

#define _USE_MATH_DEFINES

◆ CO_DB

#define CO_DB ( v)
Value:
(20.0f * log10f(v))
unsigned v[N_MAX]
Definition inflate.c:1584

◆ DB_CO

#define DB_CO ( g)
Value:
((g) > -90.0f ? powf(10.0f, (g) * 0.05f) : 0.0f)
int g
Definition inflate.c:1573

◆ DN_CHECK

#define DN_CHECK ( x,
l )
Value:
if (fabs(x) < 1e-38) printf("DN: "l"\n")
* e
Definition inflate.c:1404
int * l
Definition inflate.c:1579
unsigned x[BMAX+1]
Definition inflate.c:1586

◆ f_abs

#define f_abs ( j)
Value:
float abs(const fft_t *freqs, off_t x)
Definition OscilGen.cpp:52
register unsigned j
Definition inflate.c:1576

◆ f_exp

#define f_exp ( x)
Value:
static float f_pow2(float x)
Definition ladspa-util.h:218
#define LN2R
Definition ladspa-util.h:57

◆ LIMIT

#define LIMIT ( v,
l,
u )
Value:
((v)<(l)?(l):((v)>(u)?(u):(v)))
struct huft * u[BMAX]
Definition inflate.c:1583

◆ LIN_INTERP

#define LIN_INTERP ( f,
a,
b )
Value:
((a) + (f) * ((b) - (a)))
uint8_t a
Definition Spc_Cpu.h:141
unsigned f
Definition inflate.c:1572
b
Definition crypt.c:628

◆ LN2R

#define LN2R   1.442695041f

◆ MOD

#define MOD ( v,
m )
Value:
(v<0?v+m:(v>=m?v-m:v))
unsigned * m
Definition inflate.c:1559

◆ NEG_MOD

#define NEG_MOD ( v,
m )
Value:
((v)<0?((v)+(m)):(v))

Function Documentation

◆ cube_interp()

float cube_interp ( const float fr,
const float inm1,
const float in,
const float inp1,
const float inp2 )
inlinestatic

◆ f_clamp()

float f_clamp ( float x,
float a,
float b )
inlinestatic

◆ f_max()

float f_max ( float x,
float a )
inlinestatic

◆ f_min()

float f_min ( float x,
float b )
inlinestatic

◆ f_pow2()

float f_pow2 ( float x)
inlinestatic

◆ f_round()

int f_round ( float f)
inlinestatic

◆ f_sin_sq()

float f_sin_sq ( float angle)
inlinestatic

◆ f_trunc()

int f_trunc ( float f)
inlinestatic

◆ flush_to_zero()

float flush_to_zero ( float f)
inlinestatic

◆ lrintf()

long int lrintf ( float x)

◆ round_to_zero()

void round_to_zero ( volatile float * f)
inlinestatic