aboutsummaryrefslogtreecommitdiffstats
path: root/src/zpow.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add option UNSAFE which disables all internal error checksMattias Andrée2016-04-271-2/+2
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Fix warnings (that were not turned on by default)Mattias Andrée2016-04-081-3/+0
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Optimise zsqr, zmul, zstr, zdivmod, zpow, and zpowuMattias Andrée2016-03-161-5/+13
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Multiple changes:Mattias Andrée2016-03-131-4/+4
| | | | | | | | | | | | | | | | 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/+2
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* A brief description of exponentiation by squaringMattias Andrée2016-03-071-0/+6
| | | | 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-6/+3
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Clean up, fix a few bugs, and add a testMattias Andrée2016-03-041-1/+7
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add makefile and fix errorsMattias Andrée2016-03-041-4/+2
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Optimise zpow and zmodpowMattias Andrée2016-03-031-5/+10
| | | | 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-0/+45
Signed-off-by: Mattias Andrée <maandree@kth.se>