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