| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Fix possible memory in zstr on failure | Mattias Andrée | 2016-04-27 | 3 | -1/+6 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | zstr: add new parameter, n: the known limit out the length of the output | Mattias Andrée | 2016-04-27 | 1 | -8/+22 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | Add, and use, libzahl_memfailure for conciseness, also fix possible unset errno | Mattias Andrée | 2016-04-26 | 4 | -15/+15 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | zzero1 did not guarantee that all arguments were evaulated exactly once, thus made static inline | Mattias Andrée | 2016-04-26 | 1 | -1/+6 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | Ensure that failure does not result in memory leak | Mattias Andrée | 2016-04-26 | 5 | -14/+91 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | Fix warnings (that were not turned on by default) | Mattias Andrée | 2016-04-08 | 8 | -28/+23 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | Split out zahl-inlines.h zahl-internals.h from zahl.h to hide uninteresting stuff | Mattias Andrée | 2016-04-07 | 1 | -19/+13 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | zptest: use DEFAULT_RANDOM | Mattias Andrée | 2016-04-07 | 1 | -1/+1 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | Add rand(3), lrand(3), and random(3) to zrand | Mattias Andrée | 2016-03-27 | 1 | -28/+133 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | zrand: add DEFAULT_RANDOM and FASTEST_RANDOM | Mattias Andrée | 2016-03-25 | 1 | -0/+2 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | zrand: add MODUNIFORM and add tests for QUASIUNIFORM and MODUNIFORM | Mattias Andrée | 2016-03-25 | 1 | -0/+8 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | Rename zsplit_unsigned_fast_small_tainted to zsplit_unsigned_fast_small_auto | Mattias Andrée | 2016-03-25 | 2 | -2/+2 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | Optimise zsqr, zmul, zstr, zdivmod, zpow, and zpowu | Mattias Andrée | 2016-03-16 | 7 | -91/+168 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | Fix bug in libzahl_msb_nz_* and optimise and simplify libzahl_realloc | Mattias Andrée | 2016-03-15 | 2 | -17/+11 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | Remove unnecessary trim | Mattias Andrée | 2016-03-15 | 1 | -1/+0 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | Optimise zsqr, and optimise zmul a little | Mattias Andrée | 2016-03-15 | 3 | -55/+112 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | Optimise zsetup, zgcd, zmul, and zsqr and add -flto | Mattias Andrée | 2016-03-15 | 8 | -106/+156 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | Optimisations | Mattias Andrée | 2016-03-15 | 10 | -137/+64 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | Mostly optimisations | Mattias Andrée | 2016-03-14 | 15 | -158/+195 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | Fix so that no workaround is required. | Mattias Andrée | 2016-03-14 | 1 | -6/+1 |
| | | | | | | | Thanks to Alexis Megas. Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | Cleaner workaround for clang bug | Mattias Andrée | 2016-03-14 | 1 | -32/+15 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | Add reference to clang bug report | Mattias Andrée | 2016-03-14 | 1 | -0/+1 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | Multiple changes: | Mattias Andrée | 2016-03-13 | 37 | -147/+219 |
| | | | | | | | | | | | | | | | | | 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> | ||||
| * | Optimisations | Mattias Andrée | 2016-03-13 | 34 | -143/+115 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | Make zabs, zneg and zswap inline | Mattias Andrée | 2016-03-13 | 3 | -32/+0 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | 64 bits (severely) outshines 16 bits and 8 bits in performance: do some cleanup | Mattias Andrée | 2016-03-12 | 2 | -20/+0 |
| | | | | | 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 operations | Mattias Andrée | 2016-03-12 | 4 | -22/+16 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | A brief description of exponentiation by squaring | Mattias Andrée | 2016-03-07 | 1 | -0/+6 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | Fix another typo | Mattias Andrée | 2016-03-07 | 1 | -1/+1 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | Fix typo | Mattias Andrée | 2016-03-06 | 1 | -1/+1 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | A description of the Karatsuba algorithm | Mattias Andrée | 2016-03-06 | 1 | -0/+6 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | Clean up | Mattias Andrée | 2016-03-05 | 1 | -2/+0 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | Add memory pool, also let the user know that libzahl is not designed for cryptography | Mattias Andrée | 2016-03-05 | 5 | -16/+90 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | zinit is now an inline function | Mattias Andrée | 2016-03-05 | 1 | -10/+0 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | Improve zsub, only copy to temp when necessary | Mattias Andrée | 2016-03-05 | 2 | -15/+15 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | Fix bugs and add a randomised testing | Mattias Andrée | 2016-03-05 | 8 | -48/+63 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | Clean up, add zerror and zperror, fix bugs and add more tests | Mattias Andrée | 2016-03-04 | 23 | -109/+172 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | Clean up, fix a few bugs, and add a test | Mattias Andrée | 2016-03-04 | 17 | -47/+62 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | Add makefile and fix errors | Mattias Andrée | 2016-03-04 | 48 | -97/+88 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | Add zptest | Mattias Andrée | 2016-03-03 | 2 | -2/+77 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | Add zrand | Mattias Andrée | 2016-03-03 | 2 | -1/+97 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | Cleanup and fix bug in ztrunc | Mattias Andrée | 2016-03-03 | 23 | -193/+134 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | zsets: minor optimisation | Mattias Andrée | 2016-03-03 | 1 | -1/+4 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | Add zmul and zsqr | Mattias Andrée | 2016-03-03 | 2 | -0/+171 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | Optimised zdivmod | Mattias Andrée | 2016-03-03 | 4 | -10/+39 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | Optimise zdivmod | Mattias Andrée | 2016-03-03 | 2 | -12/+9 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | Add zbset | Mattias Andrée | 2016-03-03 | 2 | -2/+50 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | Add zdivmod | Mattias Andrée | 2016-03-03 | 2 | -1/+80 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | Optimise zpow and zmodpow | Mattias Andrée | 2016-03-03 | 2 | -10/+20 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | Add new functions: zpowu and zmodpowu | Mattias Andrée | 2016-03-03 | 2 | -0/+77 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
