quakeforge/libs/util/test
Bill Currie af814ff9a8 [util] Add a cache-line aligned memory allocator
This was inspired by
Hoard: A Scalable Memory Allocator
  for Multithreaded Applications

 Emery D. Berger, Kathryn S. McKinley, Robert D. Blumofe, Paul R.
 Wilson,

It's not anywhere near the same implementation, but it did take a few
basic concepts. The idea is twofold:
1) A pool of memory from which blocks can be allocated and then freed
en-mass and is fairly efficient for small (4-16 byte) blocks
2) Tread safety for use with the Vulkan renderer (and any other
multi-threaded tasks).

However, based on the Hoard paper, small allocations are cache-line
aligned. On top of that, larger allocations are page aligned.

I suspect it would help qfvis somewhat if I ever get around to tweaking
qfvis to use cmem.
2020-12-21 14:14:29 +09:00
..
Makemodule.am [util] Add a cache-line aligned memory allocator 2020-12-21 14:14:29 +09:00
test-bary.c Better (-1..1) random numbers. 2013-03-13 14:41:04 +09:00
test-cmem.c [util] Add a cache-line aligned memory allocator 2020-12-21 14:14:29 +09:00
test-cs.c Catch accuracy errors. 2013-03-13 17:16:34 +09:00
test-darray.c [util] Fix darray test for gcc purity 2020-03-20 12:59:25 +09:00
test-dq.c Add tests for inverting a dual quad transform. 2012-05-15 21:08:43 +09:00
test-half.c Add support for half floats. 2012-04-26 20:55:11 +09:00
test-mat3.c Switch QF's quaterions from wxyz to xyzw. 2018-10-12 14:33:55 +09:00
test-mat4.c mat4 test case fixes. 2018-08-26 15:06:08 +09:00
test-plist.c Correct an apparent typo 2020-02-17 12:58:23 +09:00
test-qfs.c Fix some issues found found by valgrind. 2012-01-24 19:54:21 +09:00
test-quat.c [util] Calculate quaternion to rotate between two vectors 2020-12-21 14:14:10 +09:00
test-seb.c [util] Rework SEB affine/convex testing 2020-06-21 17:07:54 +09:00
test-seg.c Add tests for chunk line numbers. 2014-01-28 16:22:03 +09:00
test-set.c Use set_bits_t for holding set elements. 2013-03-16 21:26:49 +09:00
test-txtbuffer.c Add a buffer-gap text buffer 2020-02-24 17:30:33 +09:00
test-vrect.c Do a pure/const/noreturn/format attribute pass. 2018-10-09 12:42:21 +09:00