Sign in
gnu
/
gcc
/
5aff8e796871e8cf53bded3a439b4fcec810a6f4
/
.
/
gcc
/
f
/
runtime
/
libF77
/
h_sign.c
blob: 7b06c157a74e20bc62ea8cef1b3dbb35eb93c107 [
file
] [
log
] [
blame
]
#include
"f2c.h"
#ifdef
KR_headers
shortint h_sign
(
a
,
b
)
shortint
*
a
,
*
b
;
#else
shortint h_sign
(
shortint
*
a
,
shortint
*
b
)
#endif
{
shortint x
;
x
=
(*
a
>=
0
?
*
a
:
-
*
a
);
return
(
*
b
>=
0
?
x
:
-
x
);
}