repo.or.cz
/
newlib-cygwin.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git]
/
newlib
/
libm
/
complex
/
clog10f.c
blob
12427322761660cea759fbd43edf4b0bfc813208
1
#include <complex.h>
2
#include <math.h>
3
4
float complex
5
clog10f
(
float complex
z
)
6
{
7
float complex
w
;
8
float
p
,
rr
;
9
10
rr
=
cabsf
(
z
);
11
p
=
log10f
(
rr
);
12
rr
=
atan2f
(
cimagf
(
z
),
crealf
(
z
)) * (
float
)
M_IVLN10
;
13
w
=
p
+
rr
*
I
;
14
return
w
;
15
}