aboutsummaryrefslogtreecommitdiff
path: root/src/benchmarks/cfrac/podd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/benchmarks/cfrac/podd.c')
-rw-r--r--src/benchmarks/cfrac/podd.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/benchmarks/cfrac/podd.c b/src/benchmarks/cfrac/podd.c
new file mode 100644
index 0000000..def95b4
--- /dev/null
+++ b/src/benchmarks/cfrac/podd.c
@@ -0,0 +1,16 @@
+#include "pdefs.h"
+#include "precision.h"
+
+/*
+ * Returns non-zero if u is odd
+ */
+int podd(u)
+ precision u;
+{
+ register int res;
+
+ (void) pparm(u);
+ res = (*(u->value) & 1);
+ pdestroy(u);
+ return res;
+}