Koakuma
1a362ea5b0
Fix sparc64 bits definitions
2020-10-25 21:38:39 +07:00
Koakuma
785153d756
Fix SA_* constants for sparc64
2020-10-25 20:39:32 +07:00
Koakuma
f018201009
Predict error-less path on syscalls
2020-10-25 20:07:18 +07:00
Koakuma
2e7a4758b3
Add back ppc input/output/clobber definitions
...
Accidentally removed when rebasing, this adds it back.
2020-10-25 13:39:22 +07:00
Koakuma
1d3abb761d
"zig fmt" on lib/std/os/linux.zig
2020-10-25 13:38:08 +07:00
Koakuma
e7369ada93
Fix boolean operator in if clause
2020-10-24 21:33:40 +07:00
Koakuma
73e62f22ec
Fix sigaction(2) call on sparc64
2020-10-24 20:05:37 +07:00
Koakuma
792526c0bd
Fix sparc64 argument loading
2020-10-24 20:05:36 +07:00
Koakuma
cdbf66e36e
Add sparc64-specific values for the various SA_ and SIG_ constants
2020-10-24 20:05:34 +07:00
Koakuma
268516d5d9
Fix constants
2020-10-24 20:04:18 +07:00
Koakuma
238f253de9
Move comptime out
2020-10-24 20:03:41 +07:00
Koakuma
cefbe4e7be
Use correct names for generic SPARC targets
...
LLVM calls generic sparc32 CPUs "v8" and generic sparc64 CPUs "v9".
2020-10-24 20:03:41 +07:00
Koakuma
341eec71fd
Add clone(2) implementation
...
This implementation kindly provided by @LemonBoy at GitHub
https://github.com/ziglang/zig/pull/6187#issuecomment-682635168
2020-10-24 20:03:41 +07:00
Koakuma
300cfbf252
Add TLS implementation for sparc64
2020-10-24 20:03:40 +07:00
Koakuma
6146f81c6e
Add pipe(2) support
2020-10-24 20:03:37 +07:00
Koakuma
dba009fd21
Account for the delay slot
2020-10-24 20:01:32 +07:00
Koakuma
c29da84c0e
Add sp loading
2020-10-24 20:01:29 +07:00
Koakuma
23433fb317
Fix register naming
2020-10-24 19:59:05 +07:00
Koakuma
de06b0a635
Add sparc64 linux bits
2020-10-24 19:59:04 +07:00
Koakuma
e5a11020cc
Add sparc64 syscall interface
2020-10-24 19:59:04 +07:00
Frank Denis
91a1c20e74
Fix a typo (s/multple/multiple/)
2020-10-24 07:57:34 +02:00
Andrew Kelley
3af9025a1d
Merge pull request #6719 from jedisct1/ed25519-batch
...
std/crypto/25519: add support for batch Ed25519 signature verification
2020-10-23 00:58:53 -04:00
Andrew Kelley
59c26c79e8
Merge branch 'BarabasGitHub-improve-windows-networking'
2020-10-22 17:45:31 -07:00
Andrew Kelley
569f7ce49e
Merge branch 'improve-windows-networking'
...
of https://github.com/BarabasGitHub/zig into
BarabasGitHub-improve-windows-networking
Conflicts:
lib/std/os.zig
This commit resolves conflicts with the changes to std.os which removed
the EAGAIN error handling interactions with the event loop. The solution
to the conflict was to apply EAGAIN => return error.WouldBlock into the
improved windows networking branch.
2020-10-22 16:59:15 -07:00
DixiE
79ec08fe2f
Fix Compiler Error When Using wWinMain Entry-Point
...
The fix for #6715 introduced a new compiler error when attempting to use
wWinMain as the application entry-point.
The Windows API often relies on implicit casts between signed and
unsigned variables. In this case, wWinMain returns an INT despite the
fact this value is intended to feed into ExitProcess, which expects a
UINT, so I've restored the bitcast from #5613 .
2020-10-22 19:50:06 -04:00
chwayne
1e13e8e817
Make argsAlloc/ArgIterator return zero-sentinel strings ( #6720 )
2020-10-22 17:52:48 -04:00
xackus
2ee79f149b
std: reference more declarations in std.build
2020-10-22 17:44:23 -04:00
Andrew Kelley
e02655798f
Merge pull request #6743 from LemonBoy/someppc64stuff
...
Some ppc64 stuff
2020-10-22 17:39:26 -04:00
Frank Denis
047599928a
Add a benchmark for signature verifications
2020-10-22 09:58:26 +02:00
Frank Denis
2d9befe9bf
Implement multiscalar edwards25519 point multiplication
2020-10-22 09:58:26 +02:00
Frank Denis
0fb6fdd7eb
Support variable-time edwards25519 scalar multiplication
...
This is useful to save some CPU cycles when the scalar is public,
such as when verifying signatures.
2020-10-22 09:58:26 +02:00
Frank Denis
ff658abe79
std/crypto/25519: use Barrett reduction for scalars (mod l)
2020-10-22 09:58:26 +02:00
Frank Denis
8e79b3cf23
std/crypto/25519: add support for batch Ed25519 signature verification
2020-10-22 09:58:26 +02:00
LemonBoy
0c355bef9e
std: Slim down the error code path in initStaticTLS
...
Calling @panic made the executable ~30x times bigger, use a simple
`abort()` and let the user figure out what went wrong.
Supporting ARMv6 (and earlier?) platforms is not a priority.
Closes #6676
2020-10-21 23:35:06 -04:00
heidezomp
1e07487904
Fix std.net.connectUnixSocket in evented I/O mode
...
The event loop constant was missing.
2020-10-21 23:32:12 -04:00
frmdstryr
52879b50d9
Update enable-valgrind flag to fvalgrind
2020-10-21 22:41:11 -04:00
xackus
36d586336c
std docs: print bool values
2020-10-20 23:27:12 +03:00
LemonBoy
90f7034b69
std: Implement featureSetHasAny/featureSetHasAll
...
Introduce two helper functions to avoid writing short novels only to check for more
than a single feature.
2020-10-20 23:23:43 +03:00
John Burton
33c4ad7f3a
Add missing std in dump function json.zig
...
Add missing std to use of std.io.getStdErr in the function dump
so that it compiles.
2020-10-20 13:39:38 +03:00
LemonBoy
96fe971051
std: Minor changes to startup code
...
* Smaller startup sequence for ppc64
* Terminate the frame-pointer chain when executing _start
* Make the stack traces work on ppc64
* Make the stack traces coloured on ppc64, some ioctls numbers are
different and the whole set of constants should be audited.
2020-10-19 15:15:43 +02:00
Frank Denis
6ddb05d996
Darwin has arc4random(), too
2020-10-18 18:24:36 +02:00
Jakub Konka
b28992de71
Disable build.zig tests on WASI since rely on cwd()
...
Signed-off-by: Jakub Konka <kubkon@jakubkonka.com>
2020-10-18 18:20:43 +02:00
Robin Voetter
3d857f7808
add addPackage test
2020-10-18 13:35:24 +02:00
Robin Voetter
29c580304b
Fix invalid call to dupePkg in build.zig
2020-10-18 13:20:19 +02:00
Jesse Rudolph
e821a57683
add Builder.dupePkg()
...
mimics the duplication of strings in `Builder` for `Pkg`. This
ensures the lifetime of the memory backing strings in a `Pkg`
struct and the `Pkg.dependencies` slice is not shorter than the
`Builder` that the data is associated with.
2020-10-17 22:35:36 -04:00
Andrew Kelley
b0684bf084
std.mem: expose the simpler linear functions
...
The new defaults that came in with
644400054c5769a397ded4f569e2ac0600d65305 are nice, however, it is still
possible that someone knows their inputs are always small and wants to
use the simpler implementations. We keep the default to make the choice
at runtime, but expose the linear functions in the public interface of
std.mem.
Also improved the doc comments.
2020-10-17 19:24:52 -07:00
Andrew Kelley
644400054c
Merge pull request #6259 from dec05eba/master
...
Use boyer-moore-horspool algorithm for indexOfPos and lastIndexOf unless the haystack or needle is very small
2020-10-17 21:38:50 -04:00
Nathan Bourgeois
e55244c4c6
BYOS support for system.isatty(fd: fd_t); ( #6686 )
2020-10-17 21:13:10 -04:00
Felix (xq) Queißner
b014bc77c8
Fixes std.meta.Tuple and std.meta.ArgsTuple for zero-sized types (like void).
2020-10-17 21:10:01 -04:00
Andrew Kelley
e51bc19e4a
Merge pull request #6394 from Vexu/fmt
...
std.fmt add specifier for printing Zig identifiers
2020-10-17 21:06:54 -04:00