Commit Graph

62 Commits

Author SHA1 Message Date
doyle
7d8bd1dc16 win32: Add missing function prototypes 2021-07-29 17:36:01 +10:00
5db8a60014 Add some more helper libraries 2021-07-28 21:10:25 +10:00
07499b1004 Add some more win32 stuff, add intrinsics tests 2021-07-23 01:35:08 +10:00
b536f407b8 test: Organize unit tests 2021-07-22 19:59:27 +10:00
9f9f9b52aa Update dqn 2021-07-01 22:02:39 +10:00
4442ccfb03 Fix the unit tests 2021-05-18 21:15:36 +10:00
fb60fc44e1 Merge branch 'temp' into master 2021-05-17 21:19:33 +10:00
0165df23d7 Add more win32 defns, add comments 2021-05-17 21:19:27 +10:00
ba3b8db967 Add Dqn_Timer using Win32 api 2021-05-17 21:10:20 +10:00
21cf140ba3 Add StringMap and log fixes 2021-04-21 00:24:15 +10:00
64b65e1406 safe: Fix safe arithmetic functions 2021-03-11 20:47:57 +11:00
f45aed10ee Remove some std dependency, reorder code, use memcmp macro.. 2021-03-11 20:14:59 +11:00
8f8c954998 Add some string split functions, fix warnings 2021-02-23 20:49:43 +11:00
eb2d542960 dqn: Move templates away from prototype 2021-02-16 23:49:07 +11:00
5a9260f95b tests: Fix unit tests again 2021-02-16 22:33:54 +11:00
b5677b18c5 dqn: Add some more string helper functions 2021-02-16 22:22:28 +11:00
4cf2426193 hash: Add murmurhash, remove some dead functions 2021-02-10 20:41:28 +11:00
94057baad2 Some allocation stuff 2020-11-17 22:19:28 +11:00
f728b3c292 Give name to anonymous v2 union, improve CRTAllocator 2020-10-08 01:12:03 +11:00
38f25c51d7 idk so many updates, lost track of what changed 2020-09-20 17:15:07 +10:00
76bd54d9b0 len->size, make some functions null allocator aware 2020-07-18 00:49:21 +10:00
73f8a8bcb9 Re-organize bulk of library code 2020-07-17 00:12:27 +10:00
6cf6751013 Remove realloc, rename AllocateMetadata 2020-07-15 19:18:14 +10:00
4bc0aec917 Add stats for allocator, remove MAX_ for arrays 2020-06-22 20:58:23 +10:00
0c55abd4c3 Specify ZeroMem on allocations, rewrite rect intersect, configurable asserts 2020-06-02 22:48:20 +10:00
419a505ea9 Paramterize ZeroMem on allocations, allow override malloc and memcmp 2020-05-20 01:10:11 +10:00
6ee5b8e49e Assert if reads like an if statement, fix Dqn file bug 2020-05-07 01:24:32 +10:00
44d8f970b3 Rename Dqn_MemArena to Dqn_ArenaAllocator 2020-04-30 01:01:10 +10:00
5173478766 Fix Dqn_Bit check bugs 2020-04-19 14:31:34 +10:00
927937df98 Rewrite Dqn_StringBuilder, stddef for ptrdiff_t 2020-04-17 18:17:08 +10:00
21104f85d5 Reorganize code, fix malloc bug, allow overriding defaults 2020-04-15 00:40:12 +10:00
32fd82d740 Fix bit flag helper function bugs 2020-04-06 00:29:18 +10:00
ce63bb7755 Default allocator = null, move allocator definitions
Allocator is null by default, this is to catch any unwanted used of the heap.
2020-04-05 08:50:30 +10:00
f743c230e7 Add some helper functions 2020-04-01 01:08:59 +11:00
ea8e29dc9f Slice: Fix arena->allocator, buf->data, add array->slice 2020-03-26 00:34:38 +11:00
1d2fa7f9ca Fix wrong param arena->allocator 2020-03-24 08:10:19 +11:00
35ade5dfc1 Add alignment to allocators 2020-03-23 23:33:31 +11:00
f95836c5d5 Allocator: Rename data->user_context, File: Use allocators 2020-03-14 10:32:25 +11:00
2f7ce338a8 Add Allocator stats, StringBuilder len doesn't include null terminator 2020-02-23 01:19:59 +11:00
65cbe4b493 Add Dqn_String and update some arenas to allocators 2020-02-08 18:47:48 +11:00
cd9ccfebe2 Make more /wall compliant 2020-01-31 21:02:26 +11:00
f67d97ec3d Dqn_Rect_Intersection, remove Dqn_FixedStack, minor fixes 2020-01-18 02:01:25 +11:00
4bd8691076 Add Dqn_U64 string converter and time to seconds macros 2019-11-02 00:00:39 +11:00
a11857690f Nullptr check for top_mem_block on reserve 2019-10-29 22:22:35 +11:00
d463fcbda8 Move stb define to implementation and fix compile error for string builder 2019-09-30 22:58:02 +10:00
4a57ec6b1e Forward declare stuff for linux 2019-09-24 14:13:29 +10:00
9dd058a5f0 Add soft asserts, fixed string test, conditional asserts 2019-09-23 23:21:14 +10:00
4150864d59 debugbreak typo and switch to memset 2019-09-21 10:14:03 +10:00
e63e047550 Remove fixed size concept from MemArena 2019-09-20 21:29:57 +10:00
1c2b67892f Begin writing some Linux compatible changes 2019-09-20 16:03:09 +10:00