Network - redispatch was not properly adjust ip->ip_len
[dragonfly.git] / lib / libm / complex / cabs.c
blobb8c8ab637c9f520927ecb6a3701eb6da1e6d7be4
1 /* $NetBSD: cabs.c,v 1.1 2007/08/20 16:01:30 drochner Exp $ */
3 /*
4 * Written by Matthias Drochner <drochner@NetBSD.org>.
5 * Public domain.
6 */
8 #include <complex.h>
9 #include <math.h>
10 #include "../src/math_private.h"
12 double
13 cabs(double complex z)
16 return hypot(creal(z), cimag(z));