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
Daily bump.
[official-gcc.git]
/
libf2c
/
libF77
/
d_sign.c
blob
514ff0bbff82ab99bd5211365c6f089f5b80fbf7
1
#include
"f2c.h"
2
3
#ifdef KR_headers
4
double
d_sign
(
a
,
b
)
doublereal
*
a
, *
b
;
5
#else
6
double
d_sign
(
doublereal
*
a
,
doublereal
*
b
)
7
#endif
8
{
9
double
x
;
10
x
= (*
a
>=
0
? *
a
: - *
a
);
11
return
( *
b
>=
0
?
x
: -
x
);
12
}