diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2019-08-24 17:57:51 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2019-08-24 17:57:51 +0200 |
| commit | 77ac9ce0a5c55d4f79f8fb8f7daa59ddb53cb507 (patch) | |
| tree | 93d4e30a207265af03394d347bfff76ba677f3ce /src/benchmarks/cfrac/podd.c | |
| parent | 971adefadb94e8780b1a73f08ed11d76c2ead8a2 (diff) | |
| download | allocbench-77ac9ce0a5c55d4f79f8fb8f7daa59ddb53cb507.tar.gz allocbench-77ac9ce0a5c55d4f79f8fb8f7daa59ddb53cb507.zip | |
add cfrac benchmark
Diffstat (limited to 'src/benchmarks/cfrac/podd.c')
| -rw-r--r-- | src/benchmarks/cfrac/podd.c | 16 |
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; +} |
