sst-filters
Filters submodule for the Surge Synthesizer
Classes | Functions | Variables
sst::filters::utilities Namespace Reference

Utility code needed for Surge filters. More...

Classes

struct  SincTable
 Lookup table for evaluating the Sinc function. More...
 

Functions

float i2f_binary_cast (int i)
 

Variables

constexpr int MAX_FB_COMB = 2048 * SST_FILTERS_COMB_EXTENSION_FACTOR
 
constexpr int MAX_FB_COMB_EXTENDED = 2048 * 64
 
const auto m128_mask_signbit = SIMD_MM(set1_ps)(i2f_binary_cast(0x80000000))
 
const auto m128_mask_absval = SIMD_MM(set1_ps)(i2f_binary_cast(0x7fffffff))
 
const auto m128_zero = SIMD_MM(set1_ps)(0.0f)
 
const auto m128_half = SIMD_MM(set1_ps)(0.5f)
 
const auto m128_one = SIMD_MM(set1_ps)(1.0f)
 
const auto m128_two = SIMD_MM(set1_ps)(2.0f)
 
const auto m128_four = SIMD_MM(set1_ps)(4.0f)
 
const auto m128_1234 = SIMD_MM(set_ps)(1.f, 2.f, 3.f, 4.f)
 
const auto m128_0123 = SIMD_MM(set_ps)(0.f, 1.f, 2.f, 3.f)
 

Detailed Description

Utility code needed for Surge filters.

Note that this code may be moved to a submodule at some point in the future.

Function Documentation

◆ i2f_binary_cast()

float sst::filters::utilities::i2f_binary_cast ( int  i)

Variable Documentation

◆ MAX_FB_COMB

constexpr int MAX_FB_COMB = 2048 * SST_FILTERS_COMB_EXTENSION_FACTOR
constexpr

◆ MAX_FB_COMB_EXTENDED

constexpr int MAX_FB_COMB_EXTENDED = 2048 * 64
constexpr

◆ m128_mask_signbit

const auto m128_mask_signbit = SIMD_MM(set1_ps)(i2f_binary_cast(0x80000000))

◆ m128_mask_absval

const auto m128_mask_absval = SIMD_MM(set1_ps)(i2f_binary_cast(0x7fffffff))

◆ m128_zero

const auto m128_zero = SIMD_MM(set1_ps)(0.0f)

◆ m128_half

const auto m128_half = SIMD_MM(set1_ps)(0.5f)

◆ m128_one

const auto m128_one = SIMD_MM(set1_ps)(1.0f)

◆ m128_two

const auto m128_two = SIMD_MM(set1_ps)(2.0f)

◆ m128_four

const auto m128_four = SIMD_MM(set1_ps)(4.0f)

◆ m128_1234

const auto m128_1234 = SIMD_MM(set_ps)(1.f, 2.f, 3.f, 4.f)

◆ m128_0123

const auto m128_0123 = SIMD_MM(set_ps)(0.f, 1.f, 2.f, 3.f)