diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2020-05-06 16:56:32 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2020-06-02 11:18:47 +0200 |
| commit | 8174a918ea3b7cb216bf7ea98cfdc10661b5c37d (patch) | |
| tree | 0747ec3ccb9f8d7eeccfac35977fc17855ca3bbb /src/benchmarks/cfrac/pconst.c | |
| parent | 8f52e8fc02dd235582f5961941bcd564e9a681cd (diff) | |
| download | allocbench-8174a918ea3b7cb216bf7ea98cfdc10661b5c37d.tar.gz allocbench-8174a918ea3b7cb216bf7ea98cfdc10661b5c37d.zip | |
make the whole project more python idiomatic
* rename src directory to allocbench
* make global variable names UPPERCASE
* format a lot of code using yapf
* use lowercase ld_preload and ld_library_path as Allocator members
* name expected Errors 'err' and don't raise a new Exception
* disable some pylint messages
Diffstat (limited to 'src/benchmarks/cfrac/pconst.c')
| -rw-r--r-- | src/benchmarks/cfrac/pconst.c | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/src/benchmarks/cfrac/pconst.c b/src/benchmarks/cfrac/pconst.c deleted file mode 100644 index 89b63a7..0000000 --- a/src/benchmarks/cfrac/pconst.c +++ /dev/null @@ -1,46 +0,0 @@ -#include "pdefs.h" - -static precisionType pzeroConst = { -#ifndef BWGC - (short) 1, /* refcount (read/write!) */ -#endif - (posit) 1, /* size */ - (posit) 1, /* digitcount */ - (boolean) 0, /* sign */ - { (digit) 0 } /* value */ -}; - -static precisionType poneConst = { -#ifndef BWGC - (short) 1, /* refcount (read/write!) */ -#endif - (posit) 1, /* size */ - (posit) 1, /* digitcount */ - (boolean) 0, /* sign */ - { (digit) 1 } /* value */ -}; - -static precisionType ptwoConst = { -#ifndef BWGC - (short) 1, /* refcount (read/write!) */ -#endif - (posit) 1, /* size */ - (posit) 1, /* digitcount */ - (boolean) 0, /* sign */ - { (digit) 2 } /* value */ -}; - -static precisionType p_oneConst = { -#ifndef BWGC - (short) 1, /* refcount (read/write!) */ -#endif - (posit) 1, /* size */ - (posit) 1, /* digitcount */ - (boolean) 1, /* sign */ - { (digit) 1 } /* value */ -}; - -precision pzero = &pzeroConst; /* zero */ -precision pone = &poneConst; /* one */ -precision ptwo = &ptwoConst; /* two */ -precision p_one = &p_oneConst; /* negative one */ |
