1 2 3 4 5 6 7
#include <complex.h> // for cabsf, cimagf, crealf, complex #include <math.h> // for hypotf float cabsf(float complex z) { return hypotf(crealf(z), cimagf(z)); }