aboutsummaryrefslogtreecommitdiff
path: root/std
AgeCommit message (Collapse)Author
2019-05-04Merge pull request #2326 from daurnimator/sendmmsgAndrew Kelley
Add sendmmsg syscall wrapper
2019-05-04zig fmttgschultz
2019-05-04Added ability to specify endianess of PackedInt(Array/Slice)tgschultz
2019-05-04zig fmttgschultz
2019-05-04Implement failsafe logic for posixSleepLemonBoy
Now we'll sleep for the specified amount of time even though the number of seconds doesn't fit in a `isize` field.
2019-05-04std: Remove some assumptions about the host platformLemonBoy
The stdlib is now 32-bit friendly.
2019-05-03std.HashMap: cleanup ensureCapacity + add testRyan Liptak
- Cleaned up some comments - Removed the "is power of two" check from optimizedCapacity since the * 5 / 3 is unlikely to end up with a power of two, so it's a wasted check the majority of the time - Made ensureCapacity/ensureCapacityExact increment the modification count if they resize the hash map so that we can catch resizes while iterating, which would likely break the iterator state
2019-05-04Ugh. I updated these but forgot to git add.tgschultz
2019-05-04and againtgschultz
2019-05-04Fixed some commentstgschultz
2019-05-04Added PackedIntArray, PackedIntSlice to stdtgschultz
2019-05-03wasi: Implement read and write with err checkingShritesh Bhattarai
2019-05-03compiler-rt: Add __modsi3, __umodsi3LemonBoy
2019-05-03compiler-rt: Add __moddi3, __divdi3LemonBoy
2019-05-03Address the comments of the first review roundLemonBoy
2019-05-03Merge pull request #2409 from shritesh/wasi_nativeAndrew Kelley
WASI std: implement native os.exit and os.abort
2019-05-03WasmAllocator: compileError on non-wasm archShritesh Bhattarai
2019-05-03std: add std.ArrayList.orderedRemovedaurnimator
2019-05-03optimize `@memset` with `undefined`Andrew Kelley
When using `@memset` to set bytes to `undefined`, Zig notices this case and does a single Valgrind client request rather than N. Speeds up all allocators in safe modes. Closes #2388
2019-05-02std.HashMap: make ensureCapacityExact privateRyan Liptak
2019-05-02std.HashMap: add putAssumeCapacity fnRyan Liptak
2019-05-02std.HashMap: make ensureCapacity optimize for the expected count, add ↵Ryan Liptak
ensureCapacityExact
2019-05-02wasi: remove posix-y exitShritesh Bhattarai
2019-05-02wasi: implement os.exitShritesh Bhattarai
2019-05-02wasi: native os.abortShritesh Bhattarai
2019-05-02make std.HashMap.ensureCapacity round up to the nearest power of twoRyan Liptak
2019-05-02std.math: Correct math.nan usage in cosMarc Tiehuis
2019-05-01std.HashMap: add public ensureCapacity fnRyan Liptak
2019-05-01std.math: Add documentation for all functions and algorithm sourcesMarc Tiehuis
2019-05-01std.math: Add upstream changes/fixes and simplify go derived codeMarc Tiehuis
This also starts the documentation effort for the math/ subdirectory. The intent is to use this as a somewhat representative test-case for any work on the documentation generator.
2019-04-30wasi: import all core exportsShritesh Bhattarai
2019-04-30wasi: import all constants and their typesShritesh Bhattarai
2019-04-30wasi: implement timestampShritesh Bhattarai
2019-04-30wasi: import clock and timestamp function/typesShritesh Bhattarai
2019-04-30wasi: implement getRandomBytesShritesh Bhattarai
2019-04-30wasi: use mem.separate insteadShritesh Bhattarai
2019-04-30wasi: add getEnvMapShritesh Bhattarai
2019-04-30wasi: import environ_get and environ_sizes_getShritesh Bhattarai
2019-04-30std: add sendmmsg on linuxdaurnimator
2019-04-29WASI: implement argsAlloc and argsFree (#2364)Shritesh Bhattarai
* wasi: change URL to canon WASI-core.md * wasi: import args_get and args_sizes_get * wasi: Implement argsAlloc and argsFree * test return value for wasi arg syscalls * wasi: return unexpectedErrorPosix in argsAlloc * wasi: Add TODO for ArgIterator
2019-04-29compiler-rt: Add __mulodi4LemonBoy
2019-04-29Merge pull request #2372 from LemonBoy/aeabi_idivAndrew Kelley
compiler-rt: Add __divsi3, __aeabi_idiv
2019-04-29json tests do not need this prefix anymoreAndrew Kelley
2019-04-29enable more json testsAndrew Kelley
I think it was a mistake that these weren't getting automatically run by the test suite.
2019-04-29DirectAllocator: move if > 0 condition above @memcpyAndrew Kelley
Minor improvement to 3c13aa17 as noted by daurnimator
2019-04-29std.heap: do not excessively call mmap, and munmap in direct allocatorShawn Landden
2019-04-29compiler-rt: Add __divmodsi4, __aeabi_idivmodLemonBoy
2019-04-29compiler-rt: Add __divsi3, __aeabi_idivLemonBoy
2019-04-28Make io offsets/sizes u64 instead of usizeLemonBoy
Decouple the concepts of address-space size and file size. Closes #637
2019-04-27std.fmt: add max_depth to avoid infinite recursion from self-referencesRyan Liptak