| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | fix out of bounds read in zlsb() | Valentina Demiciseaux | 4 days | 1 | -4/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | prev scales i from num chars -> num bits, then indexes with it, causing a page fault or reading garbage. scale i after the read instead. here is a reproducer #include <stdio.h> #include "libzahl/zahl.h" int main(void) { z_t x; zinit(x); zsetu(x, 1); zlsh(x, x, 2097153); printf("used chars: expect 32769, have %lu\n", x->used); size_t tz = zlsb(x); printf("tz: expect 2097153, have %lu\n", tz); } | ||||
| * | Some small improvements | Mattias Andrée | 2016-05-07 | 1 | -1/+2 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | Optimisations | Mattias Andrée | 2016-05-07 | 1 | -3/+7 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | Make zdiv and zmod (calls zdivmod) inline | Mattias Andrée | 2016-05-06 | 1 | -0/+14 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | Make zmul and zsqr (calls low-level functions) inline | Mattias Andrée | 2016-05-06 | 1 | -0/+25 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | Do not use explicit optimisation level on zsave | Mattias Andrée | 2016-05-06 | 1 | -1/+1 |
| | | | | | Signed-off-by: Mattias Andrée <maandree@kth.se> | ||||
| * | Rename zahl-{inlines,internals}.h => zahl/{inlines,internals}.h | Mattias Andrée | 2016-05-05 | 1 | -0/+268 |
| Signed-off-by: Mattias Andrée <maandree@kth.se> | |||||
