Initial revision
[official-gcc.git] / gcc / f / runtime / libF77 / h_sign.c
blob7b06c157a74e20bc62ea8cef1b3dbb35eb93c107
1 #include "f2c.h"
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
9 shortint x;
10 x = (*a >= 0 ? *a : - *a);
11 return( *b >= 0 ? x : -x);