Frank Denis
6c2e0c2046
Year++
2020-12-31 15:45:24 -08:00
LemonBoy
5e91cc2fe3
std: Validate the atomic ordering parameter in atomic.Int
2020-12-10 09:23:48 +01:00
LemonBoy
5844511408
std: prevent instantiation of atomic.Int with non-integral types
2020-12-10 09:23:48 +01:00
daurnimator
767dd772c0
std: add std.atomic.Bool
2020-11-19 00:58:13 +11:00
daurnimator
d89d6374be
std: add tests for std.atomic.Int
2020-11-19 00:57:54 +11:00
daurnimator
8fa29bc0a2
std: fix missing operation argument to @atomicRmw
2020-11-19 00:57:35 +11:00
daurnimator
eb4d93ece3
std: some more docs for std.atomic.Int
2020-11-19 00:44:38 +11:00
daurnimator
513e8161dd
std: mark std.atomic.Int as extern so it can be used in public ABIs
2020-11-19 00:41:43 +11:00
daurnimator
c492ef97fd
std: expose all atomic operations from std.atomic.Int
2020-11-18 15:36:40 +02:00
Andrew Kelley
4a69b11e74
add license header to all std lib files
...
add SPDX license identifier
copyright ownership is zig contributors
2020-08-20 16:07:04 -04:00
Andrew Kelley
0347df82e8
improvements & fixes for general purpose allocator integration
...
* std.Mutex API is improved to not have init() deinit(). This API is
designed to support static initialization and does not require any
resource cleanup. This also happens to work around some kind of
stage1 behavior that wasn't letting the new allocator mutex code
get compiled.
* the general purpose allocator now returns a bool from deinit()
which tells if there were any leaks. This value is used by the test
runner to fail the tests if there are any.
* self-hosted compiler is updated to use the general purpose allocator
when not linking against libc.
2020-08-07 23:26:58 -07:00
Vexu
e85fe13e44
run zig fmt on std lib and self hosted
2020-07-11 20:41:19 +03:00
Felix (xq) Queißner
12cdea4525
Adds some documentation to std.atomic.Queue.
2020-04-04 13:47:07 -04:00
Andrew Kelley
9e7ae06249
std lib API deprecations for the upcoming 0.6.0 release
...
See #3811
2020-03-30 14:23:22 -04:00
Andrew Kelley
f51bec321b
Merge pull request #4707 from Vexu/small-atomics
...
Support atomic operations with bools and non power of two integers
2020-03-12 18:55:16 -04:00
Vexu
71d776c3be
add note to disabled tests, improve comptime cmpxchg
2020-03-12 22:42:01 +02:00
Vexu
9262f065f5
Move abi size checking to codegen
2020-03-11 16:48:18 +02:00
Andrew Kelley
18f1fef142
update standard library to new I/O streams API
2020-03-10 18:44:30 -04:00
Vexu
ee5b00a8b9
use atomic bools in std lib
2020-03-10 22:54:47 +02:00
Andrew Kelley
6ae36807b7
solve recursion in std.atomic.Queue.dump
...
by adding a maximum depth
2020-02-08 16:22:53 -05:00
Robin Voetter
4b4fbe3887
Replace @typeOf with @TypeOf in all zig source
...
This change was mostly made with `zig fmt` and this also modified some whitespace. Note that in some files, `zig fmt` produced incorrect code, so the change was made manually.
2019-12-10 11:09:41 -05:00
Andrew Kelley
8b2622cdd5
std.fmt.format: tuple parameter instead of var args
2019-12-08 22:53:51 -05:00
Andrew Kelley
cb38bd0a14
rename std.heap.direct_allocator to std.heap.page_allocator
...
std.heap.direct_allocator is still available for now but it is marked
deprecated.
2019-11-25 17:25:06 -05:00
Vexu
f0c94d95dd
use @atomicStore in std lib
2019-11-13 00:52:15 +02:00
Andrew Kelley
e0db54e89d
update the codebase to use @as
2019-11-08 15:57:24 -05:00
Tse
00382f6dae
DragonFlyBSD tidyup
2019-10-31 13:53:32 -04:00
Andrew Kelley
6a15e8a7a7
add comments to disabled tests linking to the tracking issue
2019-10-30 21:29:45 -04:00
Tse
33cc204481
DragonFlyBSD support
2019-10-30 21:21:58 -04:00
Andrew Kelley
ed36dbbd9c
mv std/ lib/
...
that's all this commit does. further commits will fix cli flags and
such.
see #2221
2019-09-25 23:35:41 -04:00