aboutsummaryrefslogtreecommitdiffstats
path: root/src/allocator.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* OptimisationsMattias Andrée2016-05-071-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Error-check implies unlikely branchingMattias Andrée2016-04-271-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add option UNSAFE which disables all internal error checksMattias Andrée2016-04-271-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add, and use, libzahl_memfailure for conciseness, also fix possible unset errnoMattias Andrée2016-04-261-5/+2
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Fix bug in libzahl_msb_nz_* and optimise and simplify libzahl_reallocMattias Andrée2016-03-151-13/+7
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Mostly optimisationsMattias Andrée2016-03-141-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Fix so that no workaround is required.Mattias Andrée2016-03-141-6/+1
| | | | | | Thanks to Alexis Megas. Signed-off-by: Mattias Andrée <maandree@kth.se>
* Cleaner workaround for clang bugMattias Andrée2016-03-141-32/+15
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add reference to clang bug reportMattias Andrée2016-03-141-0/+1
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Multiple changes:Mattias Andrée2016-03-131-14/+34
| | | | | | | | | | | | | | | | 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>
* 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-051-0/+41
Signed-off-by: Mattias Andrée <maandree@kth.se>