aboutsummaryrefslogtreecommitdiff
path: root/std
AgeCommit message (Collapse)Author
2018-09-04std/crypto: Clean up poly1305/x25519Marc Tiehuis
2018-09-02switch most windows calls to use W versions instead of AAndrew Kelley
See #534
2018-09-02fixupsAndrew Kelley
* zig fmt * use canonical parameter order. memcpy has dest first and the base64 code follows the pattern. * pass correct radix to charToDigit
2018-09-02Merge branch 'std-fmt-hexToBytes' of https://github.com/kristate/zig into ↵Andrew Kelley
kristate-std-fmt-hexToBytes
2018-09-02Merge pull request #1460 from ziglang/Sahnvour-windows-coff-issue721Andrew Kelley
Stack traces for Windows
2018-09-02fix regressionsAndrew Kelley
2018-09-02fix source file lookupAndrew Kelley
2018-09-02rework code to avoid duplicate operationsAndrew Kelley
2018-09-03std/fmt/index.zig: add hexToBytes function under std.fmt;kristopher tate
Depends on #1454 being implemented;
2018-09-02Merge pull request #1454 from kristate/str-hexbytes-issue1453Andrew Kelley
std.fmt: print zeroed high-order bytes correctly in hex
2018-09-02Merge pull request #1452 from shawnl/patch-1Andrew Kelley
std/rb.zig: fix comment
2018-09-01these all use futex() (inaccurate comments)Shawn Landden
2018-09-02std/fmt/index.zig: test for printing double width hex bytes with zeros;kristopher tate
Co-Authored-By: Shawn Landden <shawn@git.icu>
2018-09-02std/fmt/index.zig: set width from 0 to 2;kristopher tate
\x00 was printed as 0 and \x0E was printed as E; \x00 now correctly prints 00 and \x0E correctly prints 0E;
2018-09-01std/rb.zig: fix commentShawn Landden
2018-09-01std/fmt/index.zig: #1358: test bytes printed-out as hex;kristopher tate
2018-09-01std/fmt/index.zig: #1358 allow bytes to be printed-out as hex;kristopher tate
Supports {x} for lowercase and {X} for uppercase;
2018-08-31figuring out where /names stream isAndrew Kelley
2018-08-31awareness of debug subsectionsAndrew Kelley
2018-08-31std/crypto: zig fmtMarc Tiehuis
2018-08-31std/crypto: Update throughput_test.zig to include all hash functionsMarc Tiehuis
This avoids the need to recompile to test specific hash functions. This also adds mac/key exchange performance tests as well.
2018-08-31Make poly1305 and x25519 more idiomatic zigMarc Tiehuis
This also adjusts the current hash/hmac functions to have a consistent interface allowing easier switching/testing.
2018-08-31finding source file, line, and column infoAndrew Kelley
2018-08-30finding the function that an address is inAndrew Kelley
2018-08-30figuring out which module an address belongs inAndrew Kelley
2018-08-30reading the module information substreamAndrew Kelley
2018-08-30Add poly1305 and x25519 crypto primitivesMarc Tiehuis
These are translated from [monocypher](https://monocypher.org/) which has fairly competitive performance while remaining quite simple. Initial performance comparision: Zig: Poly1305: 1423 MiB/s X25519: 8671 exchanges per second Monocypher: Poly1305: 1567 MiB/s X25519: 10539 exchanges per second There is room for improvement and no real effort has been made at all in optimization beyond a direct translation.
2018-08-29printing info from the ModuleInfo substream of DebugInfoAndrew Kelley
2018-08-29use RtlCaptureStackBackTrace on windowsAndrew Kelley
2018-08-28fix unresolved path preventing PDB loadingAndrew Kelley
2018-08-28Merge branch 'windows-coff-issue721' of https://github.com/Sahnvour/zig into ↵Andrew Kelley
Sahnvour-windows-coff-issue721
2018-08-28Merge pull request #1369 from shawnl/cryptoAndrew Kelley
std/crypto: add chacha20
2018-08-27speed up chacha20Marc Tiehuis
The main changes are: Unrolling the inner rounds of salsa20_wordtobyte which doubles the speed. Passing the slice explicitly instead of returning the array saves a copy (can optimize out in future with copy elision) and gives ~10% improvement. Inlining the outer loop gives ~15-20% improvement but it costs an extra 4Kb of code space. I think the tradeoff is worthwhile here. The other inline loops are small and can be done by the compiler if it is worthwhile. The rotate function replacement doesn't alter the performance from the former. The modified throughput test I've used to benchmark is as follows. Interestingly we need to allocate memory instead of using a fixed buffer else Zig optimizes the whole thing out. https://github.com/ziglang/zig/pull/1369#issuecomment-416456628
2018-08-27std.crypto: add chaCha20Shawn Landden
v3
2018-08-27zig fmtAndrew Kelley
2018-08-27std.zig.parse: fix parsing of doc comments after fieldsAndrew Kelley
closes #1404
2018-08-27Handle unions differently in std.fmt (#1432)tgschultz
* Handle unions differently in std.fmt Print the active tag's value in tagged unions. Untagged unions considered unsafe to print and treated like a pointer or an array.
2018-08-25Merge remote-tracking branch 'origin/master' into llvm7Andrew Kelley
2018-08-25add test for previous commitAndrew Kelley
2018-08-25Fixed compile error when passing enum to fmttgschultz
Caused by struct printing behavior. Enums are different enough from structs and unions that the field iteration behavior doesn't do what we want even if @memberName didn't error on enums.
2018-08-25Merge remote-tracking branch 'origin/master' into macos-stack-tracesAndrew Kelley
2018-08-25fix stack traces on linuxAndrew Kelley
2018-08-24compilation unit cwd dir appears to be unnecessary on macosAndrew Kelley
2018-08-24macos stack traces have address-to-line translationAndrew Kelley
2018-08-24std.debug: remove workaround for fixed bugAndrew Kelley
2018-08-24fix regression from 2f7f7d815d0c9c4e620c7a529837b5Andrew Kelley
2018-08-24macos stack traces have the compilation unit in themAndrew Kelley
2018-08-23macos stack traces: read debug info sections from .o filesAndrew Kelley
2018-08-23Merge pull request #1405 from shawnl/path-maxAndrew Kelley
missing PATH_MAX change
2018-08-23missing PATH_MAX changeShawn Landden