summaryrefslogtreecommitdiffstats
path: root/gnu/lib/libf2c/libF77/r_mod.c
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2012-04-14 06:01:39 +0000
committerjsg <jsg@openbsd.org>2012-04-14 06:01:39 +0000
commit353c25351f0e16fbc8beabb59e48d59637b18f9f (patch)
tree6d4570cdbb1f428d350b0cd17eed52fd64489fc5 /gnu/lib/libf2c/libF77/r_mod.c
parentKill "goto again" uppon EINTR and check EWOULDBLOCK in accept(2). (diff)
downloadwireguard-openbsd-353c25351f0e16fbc8beabb59e48d59637b18f9f.tar.xz
wireguard-openbsd-353c25351f0e16fbc8beabb59e48d59637b18f9f.zip
remove libf2c, hasn't been built since it was moved to ports in 2010.
ok miod@ espie@
Diffstat (limited to 'gnu/lib/libf2c/libF77/r_mod.c')
-rw-r--r--gnu/lib/libf2c/libF77/r_mod.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/gnu/lib/libf2c/libF77/r_mod.c b/gnu/lib/libf2c/libF77/r_mod.c
deleted file mode 100644
index 9518d66ce99..00000000000
--- a/gnu/lib/libf2c/libF77/r_mod.c
+++ /dev/null
@@ -1,33 +0,0 @@
-#include "f2c.h"
-
-#ifdef IEEE_drem
-double drem (double, double);
-#else
-#undef abs
-#include <math.h>
-#endif
-double
-r_mod (real * x, real * y)
-{
-#ifdef IEEE_drem
- double xa, ya, z;
- if ((ya = *y) < 0.)
- ya = -ya;
- z = drem (xa = *x, ya);
- if (xa > 0)
- {
- if (z < 0)
- z += ya;
- }
- else if (z > 0)
- z -= ya;
- return z;
-#else
- double quotient;
- if ((quotient = (double) *x / *y) >= 0)
- quotient = floor (quotient);
- else
- quotient = -floor (-quotient);
- return (*x - (*y) * quotient);
-#endif
-}