diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-03-27 06:45:01 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-03-27 06:45:01 +0000 |
commit | ffac728d99fba8b6cf34efe46fb43ba08a123779 (patch) | |
tree | 9236fc1fad2062b359ca9a3f4c4c82327a2900df /Build/source/utils/pmx/pmx-2.6.17/libf2c/r_abs.c | |
parent | 4a81dd3ded71a6d777311353f27338a96761ee49 (diff) |
source/utils/pmx 2.6.17
git-svn-id: svn://tug.org/texlive/trunk@25750 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/pmx/pmx-2.6.17/libf2c/r_abs.c')
-rw-r--r-- | Build/source/utils/pmx/pmx-2.6.17/libf2c/r_abs.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Build/source/utils/pmx/pmx-2.6.17/libf2c/r_abs.c b/Build/source/utils/pmx/pmx-2.6.17/libf2c/r_abs.c new file mode 100644 index 00000000000..f3291fb4d14 --- /dev/null +++ b/Build/source/utils/pmx/pmx-2.6.17/libf2c/r_abs.c @@ -0,0 +1,18 @@ +#include "f2c.h" +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef KR_headers +double r_abs(x) real *x; +#else +double r_abs(real *x) +#endif +{ +if(*x >= 0) + return(*x); +return(- *x); +} +#ifdef __cplusplus +} +#endif |