A collection of single-file C libraries and tools with the goal to be portable and modifiable.
library | description | language |
---|---|---|
arena-allocator.h | drop in arena allocator | C |
arg.h | POSIX compliant argument parser based on plan9's arg(3) | C/C++ |
bench.h | micro benchmarking framework | C/C++ |
random.h | literate random number library and tutorial (related talk) | C/C++ |
stretchy-buffer.h | generic dynamic array | C |
test.h | minimal unit testing | C/C++ |
- RNG benchmark
- RNG cli tools: rng, dist
- generate ziggurat constants
- Improving Andrew Kensler's permute(): A function for stateless, constant-time pseudorandom-order array iteration
For all files without a integrated license LICENSE applies.