Debian Codegraph @

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

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