aboutsummaryrefslogtreecommitdiffstats
path: root/zahl.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* zrand: add DEFAULT_RANDOM and FASTEST_RANDOMMattias Andrée2016-03-251-1/+3
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* zrand: add MODUNIFORM and add tests for QUASIUNIFORM and MODUNIFORMMattias Andrée2016-03-251-1/+2
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Optimise zsetup, zgcd, zmul, and zsqr and add -fltoMattias Andrée2016-03-151-0/+3
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* OptimisationsMattias Andrée2016-03-151-6/+139
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Optimise zswapMattias Andrée2016-03-141-1/+19
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Mostly optimisationsMattias Andrée2016-03-141-85/+131
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Multiple changes:Mattias Andrée2016-03-131-3/+13
| | | | | | | | | | | | | | | | 1) Compile test with -O0, it takes too long otherwise. 2) Add error codes: ZERROR_0_POW_0, ZERROR_0_DIV_0, ZERROR_DIV_0, ZERROR_NEGATIVE. 3) Add workaround for a bug in clang (src/allocator.c). 4) Cleanups. 5) Minor optimisations. 6) Add inclusion guard for zahl.h. Signed-off-by: Mattias Andrée <maandree@kth.se>
* OptimisationsMattias Andrée2016-03-131-2/+63
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Make zabs, zneg and zswap inlineMattias Andrée2016-03-131-10/+10
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* 64-bit chars out-perform 32-bit chars on almost all operations, and on all expensive operationsMattias Andrée2016-03-121-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add memory pool, also let the user know that libzahl is not designed for cryptographyMattias Andrée2016-03-051-0/+1
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* zinit is now an inline functionMattias Andrée2016-03-051-2/+2
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Fix bugs and add a randomised testingMattias Andrée2016-03-051-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Clean up, add zerror and zperror, fix bugs and add more testsMattias Andrée2016-03-041-0/+10
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add makefile and fix errorsMattias Andrée2016-03-041-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add zbsetMattias Andrée2016-03-031-0/+3
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add new functions: zpowu and zmodpowuMattias Andrée2016-03-031-0/+2
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add zabs, zadd, zdiv, zmod, zmodmul, zmodpow, zneg, zpow, zsub, and the newly introduced zmodsqrMattias Andrée2016-03-031-2/+2
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* zahl.h: fix working mishapp for zptestMattias Andrée2016-03-021-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add zand, zor, zxor, znot, zbtest, zsplit, and the newly introduced ztruncMattias Andrée2016-03-021-0/+1
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* zstr_length_positive is safe for non-positive, hence rename to zstr_length; and add zstr_lengthMattias Andrée2016-03-021-2/+2
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add typedef zahl_char_t for internal useMattias Andrée2016-03-011-1/+4
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add zahl.hMattias Andrée2016-03-011-0/+129
Signed-off-by: Mattias Andrée <maandree@kth.se>