|
39b310b6b9
|
Make alignment a template parameter to help the compiler optimize
continuous-integration/drone/push Build is passing
|
2022-12-06 19:27:58 +01:00 |
|
|
b5c6ae253d
|
Make LinkedList a lot better
continuous-integration/drone/push Build is passing
|
2022-12-06 18:41:35 +01:00 |
|
|
d8f75f1d3c
|
LinkedList: Add an append_after() method
Can be used to append an item after another one instead of at the end of the list.
With doubly linked lists, this is extremely easy to achieve (O(1)).
|
2022-12-06 18:25:08 +01:00 |
|
|
146da13e43
|
LinkedList: Make sure to explicitly mark the first node's next and last nodes as nullptr
|
2022-12-06 18:23:19 +01:00 |
|
|
07e6ebd3cc
|
LinkedList: Fix nonnull_or_error
|
2022-12-06 18:22:45 +01:00 |
|
|
87fb195202
|
Add DoublyLinkedList data structure
continuous-integration/drone/push Build is passing
|
2022-12-06 17:37:43 +01:00 |
|
|
dd29156c85
|
Alloc: make() now takes variadic arguments, to forward to the constructor
|
2022-12-06 17:36:20 +01:00 |
|
|
eef74e2897
|
Add a generic error code (ENONE)
|
2022-12-06 17:35:38 +01:00 |
|
|
a021e7a309
|
Move make and destroy to luna
continuous-integration/drone/push Build is passing
|
2022-12-06 16:41:22 +01:00 |
|
|
1fa99f4f64
|
Make {add,sub,mul}_will_overflow more compiler-independent
continuous-integration/drone/push Build is passing
|
2022-12-06 15:53:06 +01:00 |
|
|
26b44e651d
|
Change safe_{sub,add,mul} so they perform the operation only once
continuous-integration/drone/push Build is passing
|
2022-12-06 15:47:59 +01:00 |
|
|
e91c04b1d1
|
luna: Introduce safe arithmetic operations, which return an error if an operation would overflow
|
2022-12-06 15:40:18 +01:00 |
|
|
7cc139c3f7
|
Make expect and check use unlikely
|
2022-12-05 13:35:33 +01:00 |
|
|
86a12f301e
|
Make value_byte a helper
|
2022-12-05 12:53:16 +01:00 |
|
|
004e13a5f3
|
Make bitmap methods const if not modifying the bitmap
|
2022-12-05 12:50:30 +01:00 |
|
|
5aa2d1fa18
|
Add a Bitmap class to provide common functionality and use that in the MemoryManager
|
2022-12-04 15:14:07 +01:00 |
|
|
c7ab6bc2d3
|
Reorganize the luna/ directory so that headers aren't in the top level include path
|
2022-12-04 12:42:43 +01:00 |
|