Yawning Angel
aa5a95a4d1
core/crypto/chacha20poly1305: Cleanups
...
- Use `encoding/endian`
2023-11-17 16:53:29 +09:00
Yawning Angel
fa1cb28c8f
core/crypto/chacha20: Cleanups
...
- Use `encoding/endian`
- Use `math/bits`
2023-11-17 16:53:29 +09:00
Yawning Angel
3902273d68
core/crypto/_blake2: Cleanups
...
- Use `encoding/endian`
- Add `@(private)` annotations to internals
- Add some descriptive comments in the unrolled compression functions
2023-11-17 16:53:29 +09:00
Yawning Angel
811132ccbd
core/crypto/sm3: odinfmt (NFC)
2023-11-17 16:53:29 +09:00
Yawning Angel
391b3090c9
core/crypto/siphash: odinfmt (NFC)
2023-11-17 16:53:29 +09:00
Yawning Angel
d50380709d
core/crypto/sha3: odinfmt (NFC)
2023-11-17 16:53:29 +09:00
Yawning Angel
14a46c6d5e
core/crypto/sha2: odinfmt (NFC)
2023-11-17 16:53:29 +09:00
Yawning Angel
b4e3da84c5
core/crypto/sha1: odinfmt (NFC)
2023-11-17 16:53:29 +09:00
Yawning Angel
9d627e453a
core/crypto/md5: odinfmt (NFC)
2023-11-17 16:53:29 +09:00
Yawning Angel
d6e0e5d3f6
core/crypto/blake2: odinfmt (NFC)
2023-11-17 16:53:29 +09:00
Jeroen van Rijn
8028033513
Merge pull request #2957 from laytan/no-crt-and-compile-assembly-on-darwin
...
-no-crt on darwin_arm64 and assembly compilation on darwin
2023-11-15 18:46:35 +01:00
Laytan Laats
6b9202dfbf
-no-crt and assembly compilation on darwin
2023-11-15 18:06:27 +01:00
Jeroen van Rijn
04c928fb9e
Clear up core:container/queue
2023-11-15 15:20:52 +01:00
Yawning Angel
1b3fb11a31
core/encoding/endian: Tidy up a comment (NFC)
2023-11-14 23:07:51 +09:00
Yawning Angel
b30ceab864
core/encoding/endian: Use intrinsics for loads/stores
...
- Use `intrinsics.unaligned_load`/`intrinsics.unaligned_store`
- Make all the routines contextless
- Add unchecked variants for code that "Knows What It Is Doing(TM)"
2023-11-14 23:07:51 +09:00
Jeroen van Rijn
3e1791aa5c
Fix typos
2023-11-13 20:54:19 +01:00
FourteenBrush
e0ac454ed0
Expose strings.ascii_set_* functions
2023-11-12 17:33:33 +01:00
Jeroen van Rijn
dd9b0ae4e5
Make pow2_f{16,32,64} contextless for consistency.
2023-11-11 14:06:48 +01:00
Jeroen van Rijn
3b5d28f0ee
Merge pull request #2948 from flysand7/fix-do
...
[core]: Remove `do` keyword from the core library
2023-11-11 13:16:12 +01:00
flysand7
270348b112
[core]: Remove do keyword from the core library
2023-11-11 20:36:38 +11:00
Jeroen van Rijn
761a079789
Fix net.split_url
...
Resolves issue #2924
2023-11-09 16:56:54 +01:00
Laytan
fc6edf65d7
fix linux.accept, addrlen should be a pointer to the length instead of the length itself
2023-11-09 14:17:22 +01:00
flga
4266a7c166
sys/linux: munmap was not using the correct syscall
2023-11-07 23:19:14 +00:00
Laytan Laats
e2cecafa66
allow integer verbs in fmt_bit_set
2023-11-07 21:09:42 +01:00
Divan Burger
c20839c461
Fix use of unitialized socket in socket_linux.odin#_dial_tcp_from_endpoint
2023-11-06 23:19:12 +02:00
Jeroen van Rijn
4cb0edc90b
Work around LLVM idiocy.
2023-11-04 22:42:32 +01:00
Jeroen van Rijn
6201280468
Add math.pow2_f{16,32,64}, fast floating point 2^x where x is an integer.
2023-11-04 22:14:44 +01:00
gingerBill
e206d6ba35
Add allocator parameter to fmt's aprint and aprintln
2023-11-03 13:26:33 +00:00
gingerBill
ef5eb4b612
A docs.odin explaining what are the required entities in core:runtime by the compiler
2023-11-01 13:59:39 +00:00
flysand7
2c9ef2e1bc
sys/linux: Fix EFAULT on recvfrom
2023-11-01 10:06:30 +11:00
gingerBill
052633b73c
Merge pull request #2876 from flysand7/new-sys-unix
...
sys/unix implementation
2023-10-31 12:43:28 +00:00
gingerBill
eb261f5b28
Merge branch 'master' into new-sys-unix
2023-10-31 12:16:25 +00:00
Karl Zylinski
d2ac3c2228
Make slice.clone and slice.clone_to_dynamic take a loc parameter
2023-10-30 21:19:21 +01:00
Jesse Stiller
3bd1918c5e
Fixed typo "fot" and clarified slashpath.ext
2023-10-30 11:57:44 +10:00
Damian Tarnawski
49da19e013
Replace Math.random with crypto.getRandomValues for _system_number
2023-10-27 12:06:35 +02:00
flysand7
bbd4c1054e
convert spaces to tabs
2023-10-27 11:30:13 +11:00
flysand7
4d65b1ab9c
Implement new sys/unix package
2023-10-27 10:51:21 +11:00
Damian Tarnawski
166803a2a5
Rename rand to rand_f64
2023-10-27 00:18:41 +02:00
Damian Tarnawski
11a2b2a942
Add system_random and random_bytes for js target
2023-10-27 00:05:38 +02:00
Jeroen van Rijn
962d599996
Fix reading from /sys/ pseudo fx
2023-10-26 14:30:04 +02:00
gingerBill
8e4bdcfb98
Remove disabled attribute from unimplemented
2023-10-25 11:41:24 +01:00
gingerBill
f3f0ab6e2c
On -disable-assert, panic will still work but not print the caller location
2023-10-25 11:34:09 +01:00
gingerBill
9b6647a019
Merge pull request #2886 from flysand7/linux-no-crt
...
Allow no CRT linking on Linux
2023-10-24 11:32:23 +01:00
jakubtomsu
b06583133a
Fix the other bit_* intrinsic calls
2023-10-22 20:59:19 +02:00
jakubtomsu
a2e6fc5909
change and_not to bit_and_not
2023-10-22 20:52:35 +02:00
Jeroen van Rijn
75a2015260
Add clear_soa (for #soa[dynamic]T)
2023-10-22 13:21:22 +02:00
Daniel
4cf48daa75
Fix a shrink(map[T]U) bug in the core lib
...
Fixed this error from `core:runtime`:
```odin
odin/core/runtime/core_builtin.odin(387:3) Error: Expected 2 return values, got 1 (Allocator_Error)
return map_shrink_dynamic((^Raw_Map)(m), map_info(T), loc)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
```
2023-10-21 13:27:56 -04:00
flysand7
2e66d621b5
Implement -no-crt entry point on linux
2023-10-22 01:58:35 +11:00
flysand7
05a9652f76
convert procs_windows_amd64.asm to tabs
2023-10-20 23:31:09 +11:00
flysand7
c458186f68
Implement __chkstk
2023-10-20 21:12:49 +11:00