This website requires JavaScript.
About
Status
₊˚⊹Discord
Explore
Register
Sign in
Reference in a new issue
Blame
Copy permalink
Reference in a new issue
Copy permalink
DKB
/
zig
Star
0
Fork
You've already forked zig
0
mirror of
https://codeberg.org/ziglang/zig
synced
2026-11-18 07:05:05 +00:00
Code
Issues
Releases
Packages
Activity
e8bcdca044
zig
/
lib
/
std
/
math
/
complex
/
abs.zig
19 lines
484 B
Raw
Normal View
History
rename std lib files to new convention
2019-03-02 16:46:04 -05:00
std.debug.assert: remove special case for test builds Previously, std.debug.assert would `@panic` in test builds, if the assertion failed. Now, it's always `unreachable`. This makes release mode test builds more accurately test the actual code that will be run. However this requires tests to call `std.testing.expect` rather than `std.debug.assert` to make sure output is correct. Here is the explanation of when to use either one, copied from the assert doc comments: Inside a test block, it is best to use the `std.testing` module rather than assert, because assert may not detect a test failure in ReleaseFast and ReleaseSafe mode. Outside of a test block, assert is the correct function to use. closes #1304
2019-02-08 18:18:47 -05:00
Add initial complex-number support - Library type instead of builtin - All C complex functions implemented Partial WIP: Needs more tests for edge cases.
2018-04-24 19:18:31 +12:00
std.math: Add documentation for all functions and algorithm sources
2019-05-01 18:15:57 +12:00
run zig fmt on std lib and self hosted
2020-07-11 14:09:04 +03:00
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-09 21:56:19 +01:00
Add initial complex-number support - Library type instead of builtin - All C complex functions implemented Partial WIP: Needs more tests for edge cases.
2018-04-24 19:18:31 +12:00
std.math.Complex: Change `new()` to `init()`
2021-05-18 02:57:51 +07:00
Add initial complex-number support - Library type instead of builtin - All C complex functions implemented Partial WIP: Needs more tests for edge cases.
2018-04-24 19:18:31 +12:00
std: update usage of std.testing
2021-05-04 20:47:26 +03:00
Add initial complex-number support - Library type instead of builtin - All C complex functions implemented Partial WIP: Needs more tests for edge cases.
2018-04-24 19:18:31 +12:00