Andrew Kelley
d08191e146
Merge pull request #12897 from r00ster91/uefi
...
std.os.uefi: fix some mistakes
2022-10-12 05:28:13 -04:00
Andrew Kelley
7ce1ee1bce
Merge pull request #13081 from r00ster91/docs
...
fix(text): hyphenation and other fixes
2022-10-12 05:26:11 -04:00
Gaëtan
62258555b6
Make CompressorOptions public
2022-10-12 04:04:43 -04:00
GethDW
01b9fa2c25
std: fix memory leak on OutOfMemory error in math.big.int and math.big.rationa
2022-10-11 20:12:03 +03:00
Ali Chraghi
d086b371f0
Compilation: strip debug info from ReleaseSmall by default
2022-10-11 17:51:25 +02:00
mllken
42a3b60c33
io_uring: allow for nullable arguments
2022-10-11 17:49:30 +02:00
r00ster91
697e22caa4
fix: resolve data race in std.Progress.maybeRefresh()
...
It seems we can simply lock the update mutex a little earlier.
2022-10-11 17:46:39 +02:00
Eric Milliken
0b7b4b7e97
std: add linux support for packet sockaddr
2022-10-11 18:46:24 +03:00
Andrew Kelley
c3d67c5c4e
Merge pull request #13117 from topolarity/compiler-rt-cmul
...
compiler-rt: Implement complex multiply/division
2022-10-11 05:51:47 -04:00
Rekai Nyangadzayi Musuka
dacdc95ea2
std/math.zig: use previous rotate code with non-power-of-two integers
2022-10-11 00:22:35 +03:00
Cody Tapscott
879fb0c57c
Manually construct denormal constants in tests
...
Constructing these at runtime can cause them to be flushed to zero,
which was triggering a CI failure for Windows.
2022-10-09 20:29:30 -07:00
Cody Tapscott
eac1e613be
compiler_rt: Re-implement ldexp/ilogb using bit-ops
...
This re-write was needed to fix deficiencies in the existing ldexp,
which was failing to compute correct results for both f16 and f80.
It would be nice to add a fast multiplication-based fallback in the
future for targets that have a hardware FPU, but this implementation
should be much faster than the existing for targets without one.
2022-10-09 11:09:02 -07:00
Luuk de Gram
3beef5a94f
CheckObjectStep: parsing and dumping producers
2022-10-08 09:43:40 +02:00
r00ster91
47e72132e2
fix: wrong amount of arguments passed to function
...
I don't know why that one argument was discarded. Is there a reason? It failed to compile.
2022-10-07 19:33:29 +02:00
r00ster91
a56a51e48f
fix: wrong return type for _poll
...
See page 1055 of <https://uefi.org/sites/default/files/resources/UEFI_Spec_2_3_1.pdf >.
2022-10-07 19:33:29 +02:00
r00ster91
4440391d81
fix: wrap function pointers in std.meta.FnPtr
2022-10-07 19:33:29 +02:00
Ali Chraghi
11dce78944
std.http: fix typo
2022-10-06 21:22:20 +03:00
r00ster91
8e2aaf6aed
fix(text): hyphenate "runtime" adjectives
2022-10-05 21:33:42 +02:00
r00ster91
51d9db8569
fix(text): hyphenate "comptime" adjectives
2022-10-05 21:19:30 +02:00
r00ster91
654e0b6679
fix(text): hyphenation and other fixes
2022-10-05 21:19:10 +02:00
Andrew Kelley
ff534d2267
Merge pull request #12979 from Vexu/inline-switch
...
Implement inline switch cases
2022-10-03 23:43:09 -04:00
GethDW
9d5462dcb5
std: fix memory leak in ArrayHashMap ( #13001 )
2022-10-03 22:57:53 -04:00
Luuk de Gram
8bbb022500
std: WASI - update to latest snapshot preview 1
...
This implements the new addition to the API: `sock_accept`.
Reference commit of WASI spec:
0ba0c5e2e37625ca5a6d3e4255a998dfaa3efc52
For full details:
0ba0c5e2e3
For entire spec at this commit:
0ba0c5e2e3/phases/snapshot/docs.md
2022-10-03 22:48:57 -04:00
zooster
db5562deb0
std.os.windows: fix HANDLER_ROUTINE callconv
2022-10-03 13:05:38 +03:00
alex
2eb0909206
std.ChildProcess: correct fn getUserInfo pkg in setUserName
...
17b0166e moved getUserInfo from std.os to std.process
but ChildProcess.setUserName never updated the pkg name.
2022-10-03 12:59:47 +03:00
zooster
91b05ad473
std.math: allow comptime_float for radiansToDegrees and degreesToRadians
...
And some other minor things.
2022-10-01 13:46:20 +03:00
r00ster91
f6312e4b69
docs: minor improvements
...
Just some minor improvements when passing by.
2022-09-29 21:40:25 +02:00
r00ster91
fda0b2c372
fix(std.testing.refAllDeclsRecursive): silently return if !builtin.is_test
2022-09-29 21:40:25 +02:00
ominitay
295451dfe5
std: Replace use of stage1 function pointers
2022-09-29 21:45:30 +03:00
Chris Boesch
9c99a88796
std.math: add "Greatest common divisor" (gcd)
2022-09-29 21:42:56 +03:00
zooster
12896d36cb
std.builtin: un-pub testVersionParse()
2022-09-29 14:47:41 +03:00
Lee Cannon
8d288a5fa7
Fix Step.cast for OptionsStep and CheckObjectStep
2022-09-29 14:41:39 +03:00
Jacob Young
5e0d8a435e
testing: fix copy paste typo
2022-09-29 14:39:10 +03:00
Evin Yulo
779c2daa19
Remove outdated comment
2022-09-28 13:00:00 +03:00
Silver
f3a1b5c481
std/meta: make FieldEnum(T) == Tag(T) for tagged unions when values match field indices
2022-09-27 18:42:20 +03:00
Veikka Tuominen
0e77259f44
add inline switch union tag captures
2022-09-27 18:33:23 +03:00
Veikka Tuominen
b4d81857f3
stage1+2: parse inline switch cases
2022-09-27 18:05:08 +03:00
Jacob Young
e915b905e0
use @ptrCast to assigned generic type to default_value
...
If the type happens to be a pointer, then the double pointer will not
coerce implicitly.
2022-09-27 13:21:01 +03:00
Lee Cannon
38a50f819c
make runPkgConfig pub
2022-09-27 13:20:32 +03:00
Bill Nagel
eeeda53423
add missing darwin types
2022-09-23 12:25:40 +03:00
ノYuh
eaaaceaf3c
make fmt.formatAsciiChar respect options parameter
2022-09-23 12:20:38 +03:00
noiryuh
0be46866fe
use std.ascii instead of defining ascii functions in std.fs.path
2022-09-23 12:19:09 +03:00
Evin Yulo
dab5bb9247
Fix docstring for std.fs.path.extension
2022-09-22 20:13:09 -04:00
Ali Chraghi
0799e98562
std: update NativeTargetInfo.detect doc comments
...
`detect` doesn't take allocator anymore
2022-09-21 20:14:39 +03:00
Veikka Tuominen
694fab4848
std: add return address parameter to panic fn
2022-09-20 19:05:00 -07:00
Andrew Kelley
62ecc154d9
Merge pull request #12904 from Vexu/ptrcast
...
stage2: pointer casting fixes and improvements
2022-09-20 22:02:36 -04:00
Meghan
521c753fda
std: fix os.linux.S function signatures to use mode_t
2022-09-20 17:54:32 -04:00
Veikka Tuominen
541b3e3a31
Sema: check pointer qualifiers before implicit cast
...
Closes #12881
2022-09-20 00:50:13 +03:00
Jakub Konka
e601969244
macho: rewrite how we allocate space in incremental context
2022-09-18 10:00:04 +02:00
billzez
dfcadd22bb
fix android definition of pthread_rwlock_t ( #12830 )
2022-09-16 20:20:24 -05:00