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
Do not do src->dest copy if register would not be allocated a normal register
[official-gcc.git]
/
libf2c
/
libF77
/
c_exp.c
blob
8d3d33d0fe356cf271879ebba9ed849a3dd703ff
1
#include
"f2c.h"
2
3
#ifdef KR_headers
4
extern
double
exp
(),
cos
(),
sin
();
5
6
VOID
c_exp
(
resx
,
z
)
complex
*
resx
, *
z
;
7
#else
8
#undef abs
9
#include <math.h>
10
11
void
c_exp
(
complex
*
resx
,
complex
*
z
)
12
#endif
13
{
14
double
expx
;
15
complex
res
;
16
17
expx
=
exp
(
z
->
r
);
18
res
.
r
=
expx
*
cos
(
z
->
i
);
19
res
.
i
=
expx
*
sin
(
z
->
i
);
20
21
resx
->
r
=
res
.
r
;
22
resx
->
i
=
res
.
i
;
23
}