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
* java/util/BitSet.java (BitSet(int)): if nbits < 0 throw
[official-gcc.git]
/
libf2c
/
libF77
/
h_sign.c
blob
7b06c157a74e20bc62ea8cef1b3dbb35eb93c107
1
#include
"f2c.h"
2
3
#ifdef KR_headers
4
shortint
h_sign
(
a
,
b
)
shortint
*
a
, *
b
;
5
#else
6
shortint
h_sign
(
shortint
*
a
,
shortint
*
b
)
7
#endif
8
{
9
shortint x
;
10
x
= (*
a
>=
0
? *
a
: - *
a
);
11
return
( *
b
>=
0
?
x
: -
x
);
12
}