27 #include <libvisual/lvconfig.h>
28 #include <libvisual/lv_defines.h>
29 #include <libvisual/lv_types.h>
38 T clamp (T value, T lower, T upper)
40 return std::max (lower, std::min (upper, value));
52 #define VISUAL_MATH_PI 3.141592653589793238462643383279502884197169399f
98 LV_API
void visual_math_simd_mul_floats_floats (
float *LV_RESTRICT dest,
const float *LV_RESTRICT src1,
const float *LV_RESTRICT src2, visual_size_t count);
185 LV_API
void visual_math_simd_complex_norm (
float *LV_RESTRICT dest,
const float *LV_RESTRICT real,
const float *LV_RESTRICT imag, visual_size_t count);