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
* gcj.texi (Compatibility): Add Limitations and Extensions section.
[official-gcc.git]
/
libf2c
/
libF77
/
d_sign.c
blob
da8d24ba7a1927024904e350f9684cb7b096690b
1
#include
"f2c.h"
2
3
double
4
d_sign
(
doublereal
*
a
,
doublereal
*
b
)
5
{
6
double
x
;
7
x
= (*
a
>=
0
? *
a
: -*
a
);
8
return
(*
b
>=
0
?
x
: -
x
);
9
}