lib/maths.c
static int sort_val_close(const void *p, const void *q)
{
    const zero_sort *a = p, *b = q;
    float p_dist = cabsf(a->value - a->ref);
    float q_dist = cabsf(b->value - b->ref);

    if (p_dist == q_dist) return 0;

    return p_dist < q_dist ? -1 : 1;
}
// sort the zero / pole pairs
sort the zero / pole pairs
sort the zero / pole pairs
static int sort_val_close(const void *p, const void *q)
{
    const zero_sort *a = p, *b = q;
    float p_dist = cabsf(a->value - a->ref);
    float q_dist = cabsf(b->value - b->ref);
    if (p_dist == q_dist) return 0;
    return p_dist < q_dist ? -1 : 1;
}
static int sort_val_close ( const void * p , const void * q ) { const zero_sort * a = p , * b = q ; float p_dist = cabsf ( a -> value - a -> ref ) ; float q_dist = cabsf ( b -> value - b -> ref ) ; if ( p_dist == q_dist ) return 0 ; return p_dist < q_dist ? -1 : 1 ; }
sort the zero / pole pairs
sort the zero / pole pairs