Commit Graph

3719 Commits

Author SHA1 Message Date
jason
f9c600a760 add nil check to heap_alloc calls (issue 2530) 2023-05-11 14:04:09 -04:00
Jeroen van Rijn
0f9e747583 Merge pull request #2520 from matias-eduardo/master
Allow for custom sleep duration in tsc frequency fallback
2023-05-09 23:03:47 +02:00
Matias Fernandez
4e146a75b6 Allow user to pass in scale directly in spall.context_create 2023-05-09 16:43:26 -04:00
Laytan Laats
f2d5e4b995 fix leak in url_parse 2023-05-09 21:05:16 +02:00
Matias Fernandez
9867037aa2 Revert "Add the waits that support I/O completion routines in kernel32.odin"
This reverts commit 46da53ba15.
2023-05-09 00:16:17 -04:00
Matias Fernandez
57c14f6a9b Allow custom sleep on tsc fallback.
This gives the user more control over the spectrum of precision vs. load time on Windows. Spall's output with much lower sleep times is still useful in my experience.

NOTE: A better API might be to allow the user to pass the freq as a param to "create_context" in case they already paid for it beforehand, but this seems fine for now.
2023-05-09 00:03:58 -04:00
Matias Fernandez
1ed105205c Merge branch 'master' of https://github.com/matias-eduardo/Odin 2023-05-08 23:52:21 -04:00
Colin Davidson
b0eda47b26 prevent infinite-loop on EOF 2023-05-06 17:52:08 -07:00
Colin Davidson
291111e626 oops. define e 2023-05-06 17:23:44 -07:00
Colin Davidson
47693da4aa Make read_at and write_at more consistent between platforms 2023-05-06 17:14:11 -07:00
Laytan Laats
c47dcbbe2f fix spacing 2023-05-06 19:39:39 +02:00
Laytan Laats
956ffdf654 add time.weekday proc 2023-05-05 20:55:59 +02:00
gingerBill
0c3522133d Fix indentation 2023-05-03 14:22:38 +01:00
Jeroen van Rijn
1223e8cf7f Merge pull request #2502 from jon-lipstate/ba-cleanup
Bit_Array: Update docs, add unsafe_get/set, round up on Create
2023-05-03 08:52:22 +02:00
Jon Lipstate
bcb01bdc52 added set overload, made make explicit 2023-05-02 18:21:52 -07:00
Clay Murray
02eab95dd1 Fix check for continuation byte in core/text/text_edit 2023-05-02 14:14:24 -06:00
Jon Lipstate
075193af1d update docs, add unsafe_get/set, add round up to create 2023-04-30 16:56:05 -07:00
gingerBill
f0ba5d3821 Merge pull request #2490 from eltociear/patch-1
Fix typo in marshal.odin
2023-04-28 12:17:35 +01:00
Jesse Stiller
9528325777 linalg/extended radians and degrees fixed
Renamed them to `to_degrees` and `to_radians` to match the same scalar functions in math--plus it helps clarify exactly what they do. And fixed a bug where the array overloads weren't being indexed.
2023-04-27 20:49:59 +10:00
gingerBill
716fe2f427 Fix typo #2485 2023-04-27 11:32:19 +01:00
gingerBill
7cda64e52d Add parentheses around or_return uses in an unary expression 2023-04-27 11:17:23 +01:00
Jon Lipstate
f9b5f2b7b1 update builder sample 2023-04-26 18:04:24 -07:00
Jon Lipstate
67fa5df89c fix typo, add builder sample 2023-04-26 18:00:14 -07:00
gingerBill
023cc9ca54 Partially buffer fmt.fprint* related calls using a bufio.Writer 2023-04-27 00:24:00 +01:00
Ikko Eltociear Ashimine
47be46ae60 Fix typo in marshal.odin
seperation -> separation
2023-04-27 00:03:36 +09:00
Matias Fernandez
46da53ba15 Add the waits that support I/O completion routines in kernel32.odin 2023-04-23 22:08:12 -04:00
jakubtomsu
65bf7f6653 Remove typo 2023-04-23 20:00:25 +02:00
Matias Fernandez
3b2864d8a6 Add IsWindow to user32.odin
This is useful for checking if window has been closed without going through the WindowProc.
2023-04-22 17:49:16 -04:00
Jeroen van Rijn
9a982cc5b5 Fix #2471 2023-04-21 08:35:21 +02:00
gingerBill
57214c63cb Merge pull request #2457 from jakubtomsu/master
Handle unmarshalling unknown values in `core:encoding/json`
2023-04-20 11:27:09 +01:00
gingerBill
2d699fd13b Fix again append on zero sized types 2023-04-19 15:34:40 +01:00
gingerBill
13c321b8fb Fix missing cast in array_elems 2023-04-19 15:31:51 +01:00
Jeroen van Rijn
fa42a788c8 Preserve port when calling net.resolve with hostname:port. 2023-04-18 18:24:27 +02:00
gingerBill
7abaf77292 Add struct #no_copy 2023-04-15 15:47:18 +01:00
gingerBill
e79883e4fd Add #no_copy to sync primitives 2023-04-15 15:41:30 +01:00
gingerBill
5da76ae34b Add struct #no_copy 2023-04-15 15:37:32 +01:00
jakubtomsu
a6d5f9877f Convert indentation to tabs 2023-04-14 17:27:52 +02:00
jakubtomsu
994825671d Handle unmarshalling to json.Value 2023-04-14 15:05:25 +02:00
RestartFU
586e85281e fix SendInput function in user32 2023-04-08 23:13:37 +00:00
Jeroen van Rijn
6fe8692b98 Merge pull request #2445 from Lperlind/documentation/strings_returns
Document return values of strings and add allocator errors where possible
2023-04-08 10:05:39 +02:00
Yawning Angel
7fc2081543 core/crypto: Add private attributes for internals
These constants and internal routines are not intended for use outside
the actual implementations themselves.
2023-04-08 10:15:00 +09:00
Yawning Angel
b8c2b0105b core/crypto: Disable optimization for the ct byte compare
Hedge against the possibility of a compiler getting clever enough to
optimize this pattern as well.
2023-04-08 10:11:04 +09:00
Yawning Angel
d72db2698b core/crypto/_fiat: Hedge against LLVM cleverness
Recent LLVM is getting smart to the point where the optimizer can change
a traditional constant-time conditional swap into a pointer swap.

Ensure that this does not happen by force-disabling optimization.
Additionally, disable inlining the relevant routines such that manual
inspection in optimized builds is still reasonably easy to do.
2023-04-08 09:57:47 +09:00
Lucas Perlind
e0d9092df8 Document return values of strings and add allocator errors where
possible
2023-04-07 20:39:01 +10:00
Jon Lipstate
7a8aa03e54 doc tests verified 2023-04-06 14:58:57 -07:00
Jon Lipstate
846c0f7cfc add decimal subpackage ref 2023-04-06 09:56:27 -07:00
Jon Lipstate
1886193c6c resolve doc-test issues 2023-04-06 09:44:57 -07:00
Jon Lipstate
ed7284add2 parens 2023-04-06 00:14:46 -07:00
Jon Lipstate
9ecbd70daa parens 2023-04-06 00:02:57 -07:00
Jon Lipstate
b8989d9bf9 strconv docs 2023-04-05 23:52:11 -07:00