diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2016-02-10 05:31:26 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2016-02-10 05:31:26 +0000 |
commit | c4cbbb4b4c32ca5e900cf1d276fa70595c34c5bd (patch) | |
tree | 1c9f00b9002b03bcf863e93a761d252b4cc0487f /Build/source/utils/pmx/pmx-src/libf2c/signbit.c | |
parent | ea9c1a801bdfb30bf6cec9b9261d37c52441e27b (diff) |
pmx 2.7.3
git-svn-id: svn://tug.org/texlive/trunk@39654 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/pmx/pmx-src/libf2c/signbit.c')
-rw-r--r-- | Build/source/utils/pmx/pmx-src/libf2c/signbit.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Build/source/utils/pmx/pmx-src/libf2c/signbit.c b/Build/source/utils/pmx/pmx-src/libf2c/signbit.c new file mode 100644 index 00000000000..de95a3b70fd --- /dev/null +++ b/Build/source/utils/pmx/pmx-src/libf2c/signbit.c @@ -0,0 +1,24 @@ +#include "arith.h" + +#ifndef Long +#define Long long +#endif + + int +#ifdef KR_headers +signbit_f2c(x) double *x; +#else +signbit_f2c(double *x) +#endif +{ +#ifdef IEEE_MC68k + if (*(Long*)x & 0x80000000) + return 1; +#else +#ifdef IEEE_8087 + if (((Long*)x)[1] & 0x80000000) + return 1; +#endif /*IEEE_8087*/ +#endif /*IEEE_MC68k*/ + return 0; + } |