Debian Codegraph @

debian/external_deps/fetk/punc/src/vf2c/h_sign.c

raw
1 #include "f2c.h"
2 #ifdef __cplusplus
3 extern "C" {
4 #endif
5
6 #ifdef KR_headers
7 shortint h_sign(a,b) shortint *a, *b;
8 #else
9 shortint h_sign(shortint *a, shortint *b)
10 #endif
11 {
12 shortint x;
13 x = (*a >= 0 ? *a : - *a);
14 return( *b >= 0 ? x : -x);
15 }
16 #ifdef __cplusplus
17 }
18 #endif