repo.or.cz
/
zpugcc
/
jano.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fixes for host gcc 4.6.1
[zpugcc/jano.git]
/
toolchain
/
gcc
/
newlib
/
libm
/
math
/
w_cabs.c
blob
bef76680c0686dcc82d7bc6f02dc54db905d6f79
1
/*
2
* cabs() wrapper for hypot().
3
*
4
* Written by J.T. Conklin, <jtc@wimsey.com>
5
* Placed into the Public Domain, 1994.
6
*/
7
8
#include
"fdlibm.h"
9
10
struct complex
{
11
double
x
;
12
double
y
;
13
};
14
15
double
16
cabs
(
z
)
17
struct complex
z
;
18
{
19
return
hypot
(
z
.
x
,
z
.
y
);
20
}