repo.or.cz
/
dragonfly.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Network - redispatch was not properly adjust ip->ip_len
[dragonfly.git]
/
lib
/
libm
/
complex
/
cabs.c
blob
b8c8ab637c9f520927ecb6a3701eb6da1e6d7be4
1
/* $NetBSD: cabs.c,v 1.1 2007/08/20 16:01:30 drochner Exp $ */
2
3
/*
4
* Written by Matthias Drochner <drochner@NetBSD.org>.
5
* Public domain.
6
*/
7
8
#include <complex.h>
9
#include <math.h>
10
#include
"../src/math_private.h"
11
12
double
13
cabs
(
double complex
z
)
14
{
15
16
return
hypot
(
creal
(
z
),
cimag
(
z
));
17
}