Cygwin: //: fetch only one item per loop
[newlib-cygwin.git] / newlib / libm / complex / cabsl.c
blob091f2cd530783770060fc7225d90cb7873c30232
1 /* Copyright (C) 2015 by Red Hat, Incorporated. All rights reserved.
3 * Permission to use, copy, modify, and distribute this software
4 * is freely granted, provided that this notice is preserved.
5 */
7 #include <complex.h>
8 #include <math.h>
10 long double
11 cabsl (long double complex z)
13 #ifdef _LDBL_EQ_DBL
14 return cabs (z);
15 #else
16 return hypotl (creall (z), cimagl (z));
17 #endif