aboutsummaryrefslogtreecommitdiffstats
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* 64-bit chars out-perform 32-bit chars on almost all operations, and on all expensive operationsMattias Andrée2016-03-124-22/+16
| | | | 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>
* Fix another typoMattias Andrée2016-03-071-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Fix typoMattias Andrée2016-03-061-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* A description of the Karatsuba algorithmMattias Andrée2016-03-061-0/+6
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Clean upMattias Andrée2016-03-051-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 cryptographyMattias Andrée2016-03-055-16/+90
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* zinit is now an inline functionMattias Andrée2016-03-051-10/+0
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Improve zsub, only copy to temp when necessaryMattias Andrée2016-03-052-15/+15
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Fix bugs and add a randomised testingMattias Andrée2016-03-058-48/+63
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Clean up, add zerror and zperror, fix bugs and add more testsMattias Andrée2016-03-0423-109/+172
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Clean up, fix a few bugs, and add a testMattias Andrée2016-03-0417-47/+62
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add makefile and fix errorsMattias Andrée2016-03-0448-97/+88
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add zptestMattias Andrée2016-03-032-2/+77
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add zrandMattias Andrée2016-03-032-1/+97
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Cleanup and fix bug in ztruncMattias Andrée2016-03-0323-193/+134
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* zsets: minor optimisationMattias Andrée2016-03-031-1/+4
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add zmul and zsqrMattias Andrée2016-03-032-0/+171
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Optimised zdivmodMattias Andrée2016-03-034-10/+39
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Optimise zdivmodMattias Andrée2016-03-032-12/+9
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add zbsetMattias Andrée2016-03-032-2/+50
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add zdivmodMattias Andrée2016-03-032-1/+80
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Optimise zpow and zmodpowMattias Andrée2016-03-032-10/+20
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add new functions: zpowu and zmodpowuMattias Andrée2016-03-032-0/+77
| | | | 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-0311-1/+342
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add zlsh and zrshMattias Andrée2016-03-022-0/+99
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* ztrunc: fix bug: bits > .used may lead to incorrect truncationMattias Andrée2016-03-021-0/+2
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* zgcd: optimisation of the first loopMattias Andrée2016-03-021-4/+12
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Cleanup and add missing header inclusionsMattias Andrée2016-03-027-3/+14
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add zand, zor, zxor, znot, zbtest, zsplit, and the newly introduced ztruncMattias Andrée2016-03-027-0/+259
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add zgcdMattias Andrée2016-03-022-1/+63
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add zsets and zstrMattias Andrée2016-03-026-4/+133
| | | | 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-022-1/+32
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Why zbits returns 1 for 0Mattias Andrée2016-03-021-3/+2
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add typedef zahl_char_t for internal useMattias Andrée2016-03-014-5/+7
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* zsetu: change macro from CHARS_PER_TYPE to SIZE_MULTIPLEMattias Andrée2016-03-011-4/+4
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add zcmp, zcmpi, zcmpu, zcmpmag, zset, zseti, and zsetuMattias Andrée2016-03-018-12/+131
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Avoid using the internal structure as much as possibleMattias Andrée2016-03-012-4/+4
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Fix whitespaceMattias Andrée2016-03-015-14/+14
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add zsetup, zunsetup, zinit, zfree, zswap, zsave, zload, zbits, and zlsbMattias Andrée2016-03-0110-0/+188
Signed-off-by: Mattias Andrée <maandree@kth.se>