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
* builtins.def: Break out _Complex math functions into their
[official-gcc.git]
/
libf2c
/
libF77
/
r_sign.c
blob
f53c6bf92200230de517335ab8575fe5b25c64f4
1
#include
"f2c.h"
2
3
double
4
r_sign
(
real
*
a
,
real
*
b
)
5
{
6
double
x
;
7
x
= (*
a
>=
0
? *
a
: -*
a
);
8
return
(*
b
>=
0
?
x
: -
x
);
9
}