gingerBill
55f3e99f63
Fix %g in fmt, and make %v default to %g for floats
2023-12-21 17:05:24 +00:00
Laytan Laats
46250168d6
use stack buffer for log allocator to avoid logging it's own allocations
2023-12-19 23:26:23 +01:00
gingerBill
829e4cc67e
Fix assign_at_elems to match the same logic as assign_at_elem_string
2023-12-18 22:22:08 +00:00
Walther Chen
031b0cc534
fix strings.last_index_any for single char
2023-12-18 11:55:45 -05:00
Laytan
baa5ea9258
fix not passing arg everywhere
2023-12-18 16:41:55 +01:00
Laytan
9a490e4e0d
fix big alignment
2023-12-18 16:38:51 +01:00
Laytan Laats
252de70b0f
fix same problem in virtual arena
2023-12-18 15:41:36 +01:00
Laytan Laats
4ae021cd4c
add other failing test and fix them
2023-12-18 15:17:27 +01:00
Yawning Angel
29c80c238d
core: Fixed build constraints
...
Multiple constraints on the same line are combined with logical OR,
while combining multiple negated constraints needs to be done with
logical AND (each constraint on a separate line).
2023-12-17 23:02:46 +09:00
Laytan Laats
58ff3dd1ed
log allocator: add option to switch between bytes and human format
2023-12-16 01:27:38 +01:00
Laytan Laats
cf8c9a6be4
log allocator: fix the formatting for query info/features and errors
2023-12-16 00:55:59 +01:00
Laytan Laats
ea709451e8
log allocator: use %m to format size
2023-12-15 23:43:35 +01:00
Laytan Laats
0b2f357bbe
fix eof logic
2023-12-14 18:05:06 +01:00
Laytan Laats
9a1c4dc56d
implement a max read/write at a time for non-windows (windows already has this)
2023-12-14 18:05:06 +01:00
Laytan Laats
7eabeda870
make sure an eof is also returned from the file streams on non-windows
2023-12-14 18:05:06 +01:00
gingerBill
2e9298891e
Merge pull request #3019 from DanielGavin/parser-fix
...
Fixed crash in `core:odin/parser` with `#reverse`
2023-12-14 15:16:01 +00:00
Lucas Perlind
12b8f91249
Format hidpi.odin
2023-12-14 10:29:50 +11:00
DanielGavin
8e395cc6e9
Fixed crash in core:odin/parser with #reverse
2023-12-13 20:08:26 +01:00
gingerBill
6e9e469abd
Merge pull request #3008 from laytan/fix-stat-struct-layout-linux-arm64
...
fix struct stat layout linux arm64
2023-12-13 15:24:38 +00:00
gingerBill
0490ba46f4
Merge pull request #3015 from Lperlind/master
...
Add Hidpi to Windows
2023-12-13 15:24:25 +00:00
gingerBill
173527d631
Remove random tag
2023-12-13 01:53:15 +00:00
gingerBill
f8cb2bcad2
Add slice.unique and slice.unique_proc
2023-12-13 01:50:26 +00:00
gingerBill
b011487778
Reimplement binary_search_by to be simpler
2023-12-13 01:37:15 +00:00
gingerBill
c8cc130744
Fix the implementation of binary_search_by to work with a normal ordering call, rather than the backwards version.
...
WHY THE HECK WAS IT THIS WAY IN THE FIRST PLACE?!
2023-12-13 01:24:03 +00:00
gingerBill
fe0244606b
Revert
2023-12-13 01:20:53 +00:00
gingerBill
036fa6482c
Use cmp_proc in binary_search
2023-12-13 01:18:05 +00:00
gingerBill
04ca22b9ea
Add to core:slice reduce_reverse, filter_reverse, repeat
2023-12-13 00:35:23 +00:00
Lucas Perlind
e410908ce8
Add Hidpi to Windows
2023-12-12 12:14:18 +11:00
Laytan Laats
d278c852cc
clean up field names
2023-12-08 23:43:30 +01:00
Matija Dizdar
843b2350eb
added #no_bounds_check back into binary_search_by
2023-12-06 21:48:37 +01:00
Matija Dizdar
526d338300
removed incorrect requirement for key type to be ordered in binary_search_by
2023-12-06 21:29:18 +01:00
Laytan Laats
a6aca5d6d1
fix struct stat layout linux arm64
2023-12-06 17:17:45 +01:00
gingerBill
31b1aef44e
Merge pull request #3003 from karl-zylinski/patch-1
...
virtual arena: Actually use DEFAULT_ARENA_STATIC_RESERVE_SIZE as default value on arena_init_static
2023-12-05 16:04:25 +00:00
flysand7
5665ae02bc
type error
2023-12-06 00:33:09 +11:00
flysand7
92d3a681cd
Merge branch 'master' into sys-linux-additions
2023-12-06 00:23:41 +11:00
flysand7
cb66ed52ce
[sys/linux]: Fix epoll_wait on arm64
2023-12-06 00:09:10 +11:00
flysand7
2e1b2dc3ba
strings: Fix up documentation of split_n
2023-12-05 23:17:19 +11:00
Karl Zylinski
65333181fc
virtual arena: Actually use DEFAULT_ARENA_STATIC_RESERVE_SIZE as default value on arena_init_static
2023-12-04 21:15:46 +01:00
Laytan Laats
291a064725
fix write on x86_64 Darwin
2023-12-04 14:57:02 +01:00
Colin Davidson
bfbeb23f54
add resize non zeroed in more places
2023-12-04 03:09:13 -08:00
Colin Davidson
58e4a011c7
add non-zeroing append and resize
2023-12-04 00:08:13 -08:00
gingerBill
abe896a7be
Merge pull request #2984 from mtarik34b/add-min-index-and-max-index-procs
...
Add min_index and max_index procedures
2023-12-02 12:58:15 +00:00
flga
e23eba0914
runtime: panic_allocator should use panic_allocator_proc
2023-12-01 19:21:58 +00:00
Jeroen van Rijn
f79efd43e4
Fix missing clamp in core:math/big random.
2023-11-27 12:43:24 +01:00
Tarık B
5a661dc67b
Add min_index and max_index procedures
2023-11-26 08:33:50 +01:00
Hector
9f96382558
Removed some accidental semi-colons and converted indentation to tabs.
2023-11-25 16:36:51 +00:00
Hector
1db5e1250f
Binary search improvements
...
Modified the algorithm so that the index is either the location of the
element if found or the index at which to insert the element to maintain
sorted order.
Also added some tests to verify the above claim.
2023-11-25 13:48:48 +00:00
Jeroen van Rijn
2bb5c4cafc
Merge pull request #2973 from flysand7/dial_tcp_bug
...
[net]: Fix passing the wrong socket to `linux.connect` on linux
2023-11-25 10:39:14 +01:00
Jeroen van Rijn
9ea88f1353
Merge pull request #2918 from flysand7/math-doc
...
[math]: Fix the doc comments on `F64_*` constants
2023-11-24 14:16:19 +01:00
Jeroen van Rijn
4d89249caf
Merge pull request #2939 from laytan/allow-larger-thread-poly-data
...
Allow larger thread poly data
2023-11-24 14:06:24 +01:00