vsip_scalar_f vsip_cmagsq_f(vsip_cscalar_f x); vsip_scalar_d vsip_cmagsq_d(vsip_cscalar_d x);
This function computes the squared magnitude of a complex scalar. The squared magnitude is computed as:

This function is often preferred over vsip_cmag_p if only magnitudes are to be compared.
vsip_cscalar_p x: Input complex scalar value.
Returns the squared magnitude of the complex scalar.