aboutsummaryrefslogtreecommitdiffstats
path: root/src/zmodpowu.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2016-03-05Clean upMattias Andrée1-2/+0
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-05Makefile: add install and uninstallMattias Andrée2-3/+20
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-05Add memory pool, also let the user know that libzahl is not designed for cryptographyMattias Andrée9-18/+98
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-05zinit is now an inline functionMattias Andrée3-14/+12
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-05Improve zsub, only copy to temp when necessaryMattias Andrée2-15/+15
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-05Fix bugs and add a randomised testingMattias Andrée14-55/+892
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-05More detailed description of division and modulusMattias Andrée7-4/+35
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-04Makefile: add check ruleMattias Andrée1-1/+4
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-04Clean up, add zerror and zperror, fix bugs and add more testsMattias Andrée29-119/+533
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-04Clean up, fix a few bugs, and add a testMattias Andrée20-49/+792
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-04Add makefile and fix errorsMattias Andrée51-98/+178
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-03Add zptestMattias Andrée3-2/+82
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-03Add zrandMattias Andrée2-1/+97
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-03Cleanup and fix bug in ztruncMattias Andrée23-193/+134
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-03zsets: minor optimisationMattias Andrée1-1/+4
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-03Add zmul and zsqrMattias Andrée2-0/+171
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-03Optimised zdivmodMattias Andrée4-10/+39
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-03Optimise zdivmodMattias Andrée2-12/+9
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-03Add zbsetMattias Andrée13-2/+101
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-03Add zdivmodMattias Andrée2-1/+80
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-03Optimise zpow and zmodpowMattias Andrée2-10/+20
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-03Add new functions: zpowu and zmodpowuMattias Andrée7-0/+168
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-03Add zabs, zadd, zdiv, zmod, zmodmul, zmodpow, zneg, zpow, zsub, and the newly introduced zmodsqrMattias Andrée15-4/+392
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-02znot man page: notes on representation and tendness toward zeroMattias Andrée1-0/+18
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-02zahl.h: fix working mishapp for zptestMattias Andrée1-1/+1
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-02Add zlsh and zrshMattias Andrée2-0/+99
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-02ztrunc: fix bug: bits > .used may lead to incorrect truncationMattias Andrée1-0/+2
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-02zgcd: optimisation of the first loopMattias Andrée1-4/+12
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-02Cleanup and add missing header inclusionsMattias Andrée7-3/+14
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-02Add zand, zor, zxor, znot, zbtest, zsplit, and the newly introduced ztruncMattias Andrée13-1/+304
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-02Add zgcdMattias Andrée2-1/+63
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-02Add zsets and zstrMattias Andrée7-5/+134
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-02Since zstr_length is a generalisation of zbits, add reference to each other in the man pagesMattias Andrée2-2/+4
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-02zstr_length_positive is safe for non-positive, hence rename to zstr_length; and add zstr_lengthMattias Andrée6-32/+59
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-02Why zbits returns 1 for 0Mattias Andrée2-3/+10
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-01Add typedef zahl_char_t for internal useMattias Andrée5-6/+11
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-01zsetu: change macro from CHARS_PER_TYPE to SIZE_MULTIPLEMattias Andrée1-4/+4
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-01Add zcmp, zcmpi, zcmpu, zcmpmag, zset, zseti, and zsetuMattias Andrée8-12/+131
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-01Avoid using the internal structure as much as possibleMattias Andrée2-4/+4
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-01Fix whitespaceMattias Andrée5-14/+14
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-03-01Add zsetup, zunsetup, zinit, zfree, zswap, zsave, zload, zbits, and zlsbMattias Andrée11-0/+189
Signed-off-by: Mattias Andrée <maandree@kth.se>