aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Change UNSAFE to ZAHL_UNSAFE, so it can be used in zahl-inlines.hMattias Andrée2016-04-297-7/+7
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Use bold, not blackboard boldMattias Andrée2016-04-291-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add refsheetMattias Andrée2016-04-295-3/+160
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Update STATUS for more accurate benchmarksMattias Andrée2016-04-291-33/+33
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Fix warningsMattias Andrée2016-04-281-3/+3
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Some documentation and cleanup for benchmark stuffMattias Andrée2016-04-283-58/+70
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Fix warningsMattias Andrée2016-04-283-14/+12
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* benchmark-func: use X-macros for function-listingMattias Andrée2016-04-271-80/+57
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* More accurate benchmarkingMattias Andrée2016-04-275-80/+158
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Document UNSAFEMattias Andrée2016-04-271-0/+1
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Error-check implies unlikely branchingMattias Andrée2016-04-278-13/+13
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add option UNSAFE which disables all internal error checksMattias Andrée2016-04-2712-21/+34
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Minor word fix in STATUSMattias Andrée2016-04-271-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add STATUSMattias Andrée2016-04-271-0/+92
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Optimise zpowu and zmodpowuMattias Andrée2016-04-272-4/+8
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add error checking to tomsfastmath translation and sort includesMattias Andrée2016-04-275-66/+286
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Improve library translationsMattias Andrée2016-04-276-19/+63
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Fix const-correctness in libtommath translation and add error checking in hebimath translationMattias Andrée2016-04-272-177/+460
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Fix typo, thank you NevenMattias Andrée2016-04-272-4/+4
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Functions in the translation layers should static inline. Probably not always fair...Mattias Andrée2016-04-274-52/+54
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Make benchmark against libtommath more fair: enable error checkingMattias Andrée2016-04-271-104/+343
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* zinit.3: document `struct zahl`Mattias Andrée2016-04-271-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Fix benchmark errorMattias Andrée2016-04-273-3/+3
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Fix possible memory in zstr on failureMattias Andrée2016-04-273-1/+6
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* zstr: add new parameter, n: the known limit out the length of the outputMattias Andrée2016-04-2711-146/+181
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* zstr_length.3: add missing blank spaceMattias Andrée2016-04-261-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add, and use, libzahl_memfailure for conciseness, also fix possible unset errnoMattias Andrée2016-04-264-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 inlineMattias Andrée2016-04-261-1/+6
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Ensure that failure does not result in memory leakMattias Andrée2016-04-267-24/+102
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Zahl[en] is spelled with upper case ZMattias Andrée2016-04-242-3/+3
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add more functions to benchmark-funcMattias Andrée2016-04-241-3/+3
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* bench/benchmark-func.c: add support for more functionsMattias Andrée2016-04-241-44/+44
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* bench/benchmark-func.cMattias Andrée2016-04-2410-2/+405
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add support for benchmark against hebimathMattias Andrée2016-04-233-36/+405
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add support for benchmark against TomsFastMathMattias Andrée2016-04-223-3/+305
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Unlist fixed entry from the todo-listMattias Andrée2016-04-201-1/+0
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Fix warnings (that were not turned on by default)Mattias Andrée2016-04-0811-36/+32
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Some improvements:Mattias Andrée2016-04-085-21/+82
| | | | | | | | | | | - Improve .gitignore - Improve portability of the makefile - Bring the translations, for gmp and tommath, used by the benchmark up to date Signed-off-by: Mattias Andrée <maandree@kth.se>
* gitignore: blacklist _/, for private filesMattias Andrée2016-04-081-0/+1
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Split out zahl-inlines.h zahl-internals.h from zahl.h to hide uninteresting stuffMattias Andrée2016-04-075-274/+287
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* zptest: use DEFAULT_RANDOMMattias Andrée2016-04-071-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add rand(3), lrand(3), and random(3) to zrandMattias Andrée2016-03-278-32/+211
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* zrand: add DEFAULT_RANDOM and FASTEST_RANDOMMattias Andrée2016-03-254-8/+35
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* zrand: add MODUNIFORM and add tests for QUASIUNIFORM and MODUNIFORMMattias Andrée2016-03-254-1/+57
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Rename zsplit_unsigned_fast_small_tainted to zsplit_unsigned_fast_small_autoMattias Andrée2016-03-252-2/+2
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add note on performance of commutative functions with assignment to operandMattias Andrée2016-03-161-0/+15
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Optimise zsqr, zmul, zstr, zdivmod, zpow, and zpowuMattias Andrée2016-03-168-91/+172
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Fix bug in libzahl_msb_nz_* and optimise and simplify libzahl_reallocMattias Andrée2016-03-152-17/+11
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Remove unnecessary trimMattias Andrée2016-03-151-1/+0
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Optimise zsqr, and optimise zmul a littleMattias Andrée2016-03-153-55/+112
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>