diff options
Diffstat (limited to 'gnu/lib/libf2c/libF77/r_dim.c')
-rw-r--r-- | gnu/lib/libf2c/libF77/r_dim.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gnu/lib/libf2c/libF77/r_dim.c b/gnu/lib/libf2c/libF77/r_dim.c new file mode 100644 index 00000000000..baca95cd9e4 --- /dev/null +++ b/gnu/lib/libf2c/libF77/r_dim.c @@ -0,0 +1,10 @@ +#include "f2c.h" + +#ifdef KR_headers +double r_dim(a,b) real *a, *b; +#else +double r_dim(real *a, real *b) +#endif +{ +return( *a > *b ? *a - *b : 0); +} |