aboutsummaryrefslogtreecommitdiffstats
path: root/src/zmodsqr.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2016-04-27Add error checking to tomsfastmath translation and sort includesMattias Andrée5-66/+286
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-04-27Improve library translationsMattias Andrée6-19/+63
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-04-27Fix const-correctness in libtommath translation and add error checking in hebimath translationMattias Andrée2-177/+460
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-04-27Fix typo, thank you NevenMattias Andrée2-4/+4
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-04-27Functions in the translation layers should static inline. Probably not always fair...Mattias Andrée4-52/+54
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-04-27Make benchmark against libtommath more fair: enable error checkingMattias Andrée1-104/+343
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-04-27zinit.3: document `struct zahl`Mattias Andrée1-1/+1
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-04-27Fix benchmark errorMattias Andrée3-3/+3
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-04-27Fix possible memory in zstr on failureMattias Andrée3-1/+6
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-04-27zstr: add new parameter, n: the known limit out the length of the outputMattias Andrée11-146/+181
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-04-26zstr_length.3: add missing blank spaceMattias Andrée1-1/+1
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-04-26Add, and use, libzahl_memfailure for conciseness, also fix possible unset errnoMattias Andrée4-15/+15
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-04-26zzero1 did not guarantee that all arguments were evaulated exactly once, thus made static inlineMattias Andrée1-1/+6
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-04-26Ensure that failure does not result in memory leakMattias Andrée7-24/+102
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-04-24Zahl[en] is spelled with upper case ZMattias Andrée2-3/+3
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-04-24Add more functions to benchmark-funcMattias Andrée1-3/+3
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-04-24bench/benchmark-func.c: add support for more functionsMattias Andrée1-44/+44
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-04-24bench/benchmark-func.cMattias Andrée10-2/+405
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-04-23Add support for benchmark against hebimathMattias Andrée3-36/+405
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-04-22Add support for benchmark against TomsFastMathMattias Andrée3-3/+305
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-04-20Unlist fixed entry from the todo-listMattias Andrée1-1/+0
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-04-08Fix warnings (that were not turned on by default)Mattias Andrée11-36/+32
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-04-08Some improvements:Mattias Andrée5-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>
2016-04-08gitignore: blacklist _/, for private filesMattias Andrée1-0/+1
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-04-07Split out zahl-inlines.h zahl-internals.h from zahl.h to hide uninteresting stuffMattias Andrée5-274/+287
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-04-07zptest: use DEFAULT_RANDOMMattias Andrée1-1/+1
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-27Add rand(3), lrand(3), and random(3) to zrandMattias Andrée8-32/+211
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-25zrand: add DEFAULT_RANDOM and FASTEST_RANDOMMattias Andrée4-8/+35
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-25zrand: add MODUNIFORM and add tests for QUASIUNIFORM and MODUNIFORMMattias Andrée4-1/+57
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-25Rename zsplit_unsigned_fast_small_tainted to zsplit_unsigned_fast_small_autoMattias Andrée2-2/+2
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-16Add note on performance of commutative functions with assignment to operandMattias Andrée1-0/+15
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-16Optimise zsqr, zmul, zstr, zdivmod, zpow, and zpowuMattias Andrée8-91/+172
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-15Fix bug in libzahl_msb_nz_* and optimise and simplify libzahl_reallocMattias Andrée2-17/+11
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-15Remove unnecessary trimMattias Andrée1-1/+0
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-15Optimise zsqr, and optimise zmul a littleMattias Andrée3-55/+112
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-15Optimise zsetup, zgcd, zmul, and zsqr and add -fltoMattias Andrée12-107/+171
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-15OptimisationsMattias Andrée13-149/+214
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-14Optimise zswapMattias Andrée1-1/+19
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-14Mostly optimisationsMattias Andrée24-251/+337
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-14Fix so that no workaround is required.Mattias Andrée1-6/+1
Thanks to Alexis Megas. Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-14Cleaner workaround for clang bugMattias Andrée1-32/+15
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-14Add reference to clang bug reportMattias Andrée1-0/+1
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-13Multiple changes:Mattias Andrée41-152/+277
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>
2016-03-13OptimisationsMattias Andrée38-151/+194
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-13Make zabs, zneg and zswap inlineMattias Andrée5-46/+14
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-13Add possibility to compare against libgmpMattias Andrée3-0/+196
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-12Add possibility to compare against libtommathMattias Andrée3-1/+202
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-1264 bits (severely) outshines 16 bits and 8 bits in performance: do some cleanupMattias Andrée2-20/+0
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-1264-bit chars out-perform 32-bit chars on almost all operations, and on all expensive operationsMattias Andrée5-23/+17
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-09Add simple benchmarkerMattias Andrée3-0/+136
Signed-off-by: Mattias Andrée <maandree@kth.se>