vsip_scalar_f vsip_cmag_f(vsip_cscalar_f x); vsip_scalar_d vsip_cmag_d(vsip_cscalar_d x);
This function computes the magnitude (absolute value) of a complex scalar. The magnitude is computed as:

This function provides a numerically stable implementation that avoids potential overflow and underflow issues.
vsip_cscalar_p x: Input complex scalar value.
Returns the magnitude (absolute value) of the complex scalar.