repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Initial revision
[official-gcc.git]
/
gcc
/
f
/
runtime
/
libF77
/
c_cos.c
blob
9e833c168b3bb900a03b0a02718b3fb44e43cfe3
1
#include
"f2c.h"
2
3
#ifdef KR_headers
4
extern
double
sin
(),
cos
(),
sinh
(),
cosh
();
5
6
VOID
c_cos
(
resx
,
z
)
complex
*
resx
, *
z
;
7
#else
8
#undef abs
9
#include <math.h>
10
11
void
c_cos
(
complex
*
resx
,
complex
*
z
)
12
#endif
13
{
14
complex
res
;
15
16
res
.
r
=
cos
(
z
->
r
) *
cosh
(
z
->
i
);
17
res
.
i
= -
sin
(
z
->
r
) *
sinh
(
z
->
i
);
18
19
resx
->
r
=
res
.
r
;
20
resx
->
i
=
res
.
i
;
21
}