kprotty
a42c0f88e0
AutoResetEvent
2020-10-11 14:17:51 -05:00
Rocknest
47d7bf1a0e
add a test for Version.parse
2020-10-11 16:30:51 +03:00
Rocknest
cd4200ccef
make Version.parse less strict
2020-10-11 16:29:19 +03:00
Sébastien Marie
161eb4a000
initialize std.os.argv in stage1 compiler. it is needed for selfExePath under OpenBSD
2020-10-11 12:25:16 +00:00
Sébastien Marie
a6dc2b7fcc
openbsd: selfExePath adjustements
2020-10-11 12:23:52 +00:00
Sébastien Marie
4c4211ea8e
merge netbsd and openbsd cases
2020-10-11 10:22:28 +00:00
Sébastien Marie
9ff51f22b4
openbsd: address link/Elf.zig comments
...
- restore correct behaviour on Android target for appending "crtend_android.o"
- some nits
2020-10-11 10:12:40 +00:00
Sébastien Marie
97ec9fdd79
opensd: selfExePath: do not rely on environment as it could be inherited
2020-10-11 08:23:37 +00:00
Sébastien Marie
78a7543056
openbsd: use mem.span() + mem.indexOf() instead of defining custom function
2020-10-11 08:23:37 +00:00
Sébastien Marie
f33a610c84
add minimal openbsd support
2020-10-11 08:23:36 +00:00
Frank Denis
9f109ba0eb
Simpler ChaCha20 vector code
2020-10-10 22:45:41 +02:00
Frank Denis
459128e059
Use an array of comptime_int for shuffle masks
...
Suggested by @LemonBoy - Thanks!
2020-10-10 22:45:41 +02:00
Frank Denis
9b386bda33
std/crypto: add a vectorized ChaCha20 implementation
...
Brings a 30% speed boost on x86_64 even though we still process only
one block at a time for now.
Only enabled on x86_64 since the non-vectorized implementation seems
to currently perform better on some architectures (at least on aarch64).
But the non-vectorized implementation still gets a little speed boost
as well (~17%) with these changes.
2020-10-10 22:45:41 +02:00
Jakub Konka
53c63bdb73
Update WASI preopens doc section to use GPA
...
Signed-off-by: Jakub Konka <kubkon@jakubkonka.com>
2020-10-10 20:07:16 +02:00
redj
c0b2813e04
tools/update_clang_options: add zig run usage example. fix src-self-hosted path. ( #6635 )
...
* tools/update_clang_options: fix src-self-hosted path now simply src.
* tools/update_clang_options: add zig run usage example.
2020-10-09 23:09:36 -04:00
LemonBoy
a31b70c4b8
std: Add/Fix/Change parts of big.int
...
* Add an optimized squaring routine under the `sqr` name.
Algorithms for squaring bigger numbers efficiently will come in a
PR later.
* Fix a bug where a multiplication was done twice if the threshold for
the use of Karatsuba algorithm was crossed. Add a test to make sure
this won't happen again.
* Streamline `pow` method, take a `Const` parameter.
* Minor tweaks to `pow`, avoid bit-reversing the exponent.
2020-10-09 22:16:48 -04:00
Andrew Kelley
fbc6a00b0a
Merge branch 'mlarouche-Fix_6500'
2020-10-09 16:49:05 -07:00
Andrew Kelley
9f8f446435
fixups to previous commit
...
* std.fs.Dir.readFile: add doc comments to explain what it means when
the returned slice has the same length as the supplied buffer.
* introduce readSmallFile / writeSmallFile to abstract over the
decision to use symlink or file contents to store data.
2020-10-09 16:45:39 -07:00
mlarouche
57912964af
Use regular file for caching stage 1 hash digest instead of symlink, fix zig build caching on Windows
...
Fix #6500
2020-10-09 16:50:43 -04:00
Jakub Konka
04b0ffdd13
Merge pull request #6577 from kubkon/macho-trie
...
stage2: add export trie generation in MachO linker
2020-10-09 17:41:52 +02:00
Jakub Konka
8dc4023615
Apply nitpick: top-level doc comments
...
Signed-off-by: Jakub Konka <kubkon@jakubkonka.com>
2020-10-09 17:40:37 +02:00
Josh Wolfe
bc6904eccc
include compiler_rt and c for wasm static libraries
2020-10-09 01:54:42 -04:00
Andrew Kelley
1951ecb228
add a code of conduct
...
this has always been the rules, they are just written down now.
also link to ziglearn.org in the readme
2020-10-08 22:48:16 -07:00
Andrew Kelley
a4828f6d0f
std.c (darwin) update to new opaque syntax
...
This was an undetected conflict between
76a195473dac059a842fed2a6ba581ca99947d2b and
95a37373e9f576854956c2909cc128b5b6388ec6
2020-10-08 22:45:39 -07:00
Andrew Kelley
76a195473d
Merge pull request #6516 from LemonBoy/fastfilecopy
...
std: Make file copy ops use zero-copy mechanisms
2020-10-08 20:14:47 -04:00
Andrew Kelley
4053b95d8e
run update_clang_options on llvm 11 rc6
2020-10-08 16:13:37 -07:00
Andrew Kelley
8b7539bd95
Merge remote-tracking branch 'origin/master' into llvm11
...
Conflicts:
src/clang.zig
Master branch renamed an enum; this branch gave it an explicit tag type
and explicitly initialized values. This commit combines the changes
together.
2020-10-08 15:47:45 -07:00
Andrew Kelley
b02341d6f5
Merge pull request #6614 from jedisct1/aes-arm
...
std/crypto/aes: add AES hardware acceleration on aarch64
2020-10-08 18:09:40 -04:00
Frank Denis
1bc2b68916
ghash: add pmull support on aarch64
2020-10-08 18:09:23 -04:00
Benjamin Feng
9de0f15b8e
Rename ix_rss -> ixrss
2020-10-08 15:31:36 -05:00
Benjamin Feng
fd3f676cdb
Pull in Darwin definitions for rusage
2020-10-08 15:19:52 -05:00
Jakub Konka
ba41e599bf
Clean up writing the trie into ULEB128 byte stream
...
Prealloc as much as possible to improve alloc performance.
Signed-off-by: Jakub Konka <kubkon@jakubkonka.com>
2020-10-08 19:53:23 +02:00
Jakub Konka
5f86505cf7
Fix ULEB128 encoding of trie
...
Use algorithm described in official Apple `ld64` implementation.
Link: https://opensource.apple.com/source/ld64/ld64-123.2.1/src/abstraction/MachOTrie.hpp
Signed-off-by: Jakub Konka <kubkon@jakubkonka.com>
2020-10-08 19:53:03 +02:00
Frank Denis
60d1e675d2
aes/aesni is not based on a Go implementation, only aes/soft is
...
Don't blame them for our bugs :)
2020-10-08 14:55:11 +02:00
Frank Denis
f39dc00ed4
std/crypto/aes: add AES hardware acceleration on aarch64
2020-10-08 14:55:08 +02:00
Tadeo Kondrak
83eda21488
zig_clang/translate_c: Use opaque declarations in Zig
2020-10-08 12:29:59 +03:00
Tadeo Kondrak
0e57f220fb
stage1: Disallow arrays in function parameters or return types
...
Closes #6535 .
2020-10-08 04:17:32 -04:00
xavier
eb33394d14
notice more kinds of optimization flags and debug flags
...
Closes #6091
2020-10-07 18:43:05 -04:00
Jakub Konka
ea44d12d1b
Add writeULEB128Mem test and couple fixes
...
Signed-off-by: Jakub Konka <kubkon@jakubkonka.com>
2020-10-07 23:54:51 +02:00
xavier
a0a834a2f2
restore ability to do comptime math
...
until https://github.com/ziglang/zig/issues/6168 is implemented,
partially revert 0bd53dd2033c60d3446abfb83209237c6eb6c9e2
in order to restore the ability to use std.math in comptime functions.
2020-10-07 17:04:48 -04:00
Andrew Kelley
95a37373e9
Merge pull request #6421 from tadeokondrak/opaque-syntax
...
Add opaque syntax that allows declarations
2020-10-07 16:58:50 -04:00
Andrew Kelley
3c43eeceab
Merge pull request #6595 from tadeokondrak/comptime-print-0
...
std.fmt.comptimePrint: Return null terminated string
2020-10-07 16:55:03 -04:00
Jakub Konka
b5b25d38a8
Fix improper reuse of global symbols in MachO
...
Signed-off-by: Jakub Konka <kubkon@jakubkonka.com>
2020-10-07 20:34:40 +02:00
Jakub Konka
bdab4f53c1
Move trie structure into its own file-module
...
Signed-off-by: Jakub Konka <kubkon@jakubkonka.com>
2020-10-07 20:34:34 +02:00
Jakub Konka
b13b36a71d
Approach using array list for auto mem mgmt
...
Signed-off-by: Jakub Konka <kubkon@jakubkonka.com>
2020-10-07 20:33:47 +02:00
Jakub Konka
e76fb8d8c8
Add incomplete writing of trie to bytes buffer
...
Signed-off-by: Jakub Konka <kubkon@jakubkonka.com>
2020-10-07 20:33:28 +02:00
Tadeo Kondrak
e9bca9de3c
std.fmt.comptimePrint: Properly null-terminate result and add test
2020-10-07 11:43:23 -06:00
Jakub Konka
f0a73df8e7
Add prototype for export trie generation in MachO linker
...
Signed-off-by: Jakub Konka <kubkon@jakubkonka.com>
2020-10-07 18:31:02 +02:00
Jakub Konka
07c33dfc95
Remove obsolete addPadding fn and callsites from MachO linker
...
This is no longer needed due to the way writing to the output
file is structured.
Signed-off-by: Jakub Konka <kubkon@jakubkonka.com>
2020-10-07 17:18:37 +02:00
LemonBoy
03762da2af
New review round
2020-10-07 11:13:26 +02:00