Rules.mak fix typo (qstrup -> qstrip)
[uclibc-ng.git] / libm / w_cabs.c
blob4044f4bffe1eb1839bd619d49c5587417ef9b005
1 /*
2 * cabs() wrapper for hypot().
4 * Written by J.T. Conklin, <jtc@wimsey.com>
5 * Placed into the Public Domain, 1994.
6 */
8 #include <complex.h>
9 #include <math.h>
11 double cabs(double _Complex z)
13 return hypot(__real__ z, __imag__ z);
15 libm_hidden_def(cabs)