Commit Graph

356 Commits

Author SHA1 Message Date
doyle
1651d7af4f dqn: Add tests for perf counter, implement unix version 2021-08-09 17:47:13 +10:00
doyle
3f7ed280c7 build: Turn on UBSAN on clang 2021-08-09 13:12:06 +10:00
doyle
3e173880a7 build: Turn on asan 2021-08-09 12:50:46 +10:00
a3318353fa Inline the code directory 2021-08-09 09:03:15 +10:00
2bd49c802a Add JsonWriter, reorganize data structure definition order 2021-08-09 08:57:53 +10:00
0ae5331d21 win32: Fix error messages for WinINet, add DSMap 2021-08-07 00:54:53 +10:00
doyle
8d9ee115e1 Organise win32 minimal header 2021-07-30 10:45:57 +10:00
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
145c62db51 Remove unused project file 2020-10-08 01:13:13 +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
2f681515f6 Remove old deprecated dqn lib 2020-04-15 00:42:18 +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