| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2021-01-10 | zig fmt | Andrew Kelley | |
| 2021-01-10 | impl lossyCast #5080 | Adam Goertz | |
| 2020-12-31 | Year++ | Frank Denis | |
| 2020-12-16 | Fix typo in math.order | data-man | |
| 2020-11-19 | Add builtin.Signedness, use it instead of is_signed | Tadeo Kondrak | |
| 2020-11-06 | Merge pull request #6941 from LemonBoy/floateqapprox | Andrew Kelley | |
| std: Implement more useful approxEq semantics | |||
| 2020-11-05 | math.shl/math.shr: add support for vectors | Frank Denis | |
| 2020-11-05 | std: Implement more useful approxEq semantics | LemonBoy | |
| Comparisons with absolute epsilons are usually useful when comparing numbers to zero, for non-zero numbers it's advised to switch to relative epsilons instead to obtain meaningful results (check [1] for more details). The new API introduces approxEqAbs and approxEqRel, where the former aliases and deprecated the old `approxEq`, allowing the user to pick the right tool for the job. The documentation is meant to guide the user in the choice of the correct alternative. [1] https://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/ | |||
| 2020-10-29 | std/math: add support for vectors to rotl()/rotr() | Frank Denis | |
| 2020-10-17 | Make std.meta.Int accept a signedness parameter | Jan Prudil | |
| 2020-10-15 | std: move std.meta.refAllDecls to std.testing | Tadeo Kondrak | |
| 2020-10-07 | restore ability to do comptime math | xavier | |
| 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-09-03 | update uses of deprecated type field access | Vexu | |
| 2020-08-30 | Merge pull request #6189 from katesuyu/div-ceil | Andrew Kelley | |
| std: Add std.math.divCeil | |||
| 2020-08-29 | std.math.divCeil: fix expectEqual argument order | Kate Tsuyu | |
| 2020-08-29 | std.math.divCeil: use expectEqual for tests | Kate Tsuyu | |
| 2020-08-29 | std.math.divCeil: move compile error back down | Kate Tsuyu | |
| 2020-08-29 | std.math.divCeil: move compile error to top | Kate Tsuyu | |
| 2020-08-29 | std.math.divCeil: support comptime_int/float | Kate Tsuyu | |
| 2020-08-28 | std.math.divCeil: conform to more test cases | Kate Tsuyu | |
| 2020-08-28 | std.math.divCeil: handle floats correctlier | Kate Tsuyu | |
| 2020-08-28 | std.math.divCeil: handle floats correctly | Kate Tsuyu | |
| 2020-08-28 | std: Add std.math.divCeil | Kate Tsuyu | |
| 2020-08-26 | forceEval() -> doNotOptimizeAway() | Frank Denis | |
| 2020-08-26 | Rename blackBox, move it to std.mem.forceEval() | Frank Denis | |
| 2020-08-20 | add license header to all std lib files | Andrew Kelley | |
| add SPDX license identifier copyright ownership is zig contributors | |||
| 2020-08-13 | stage2: implement while loops (bool condition) | Andrew Kelley | |
| * introduce a dump() function on Module.Fn which helpfully prints to stderr the ZIR representation of a function (can be called before attempting to codegen it). This is a debugging tool. * implement x86 codegen for loops * liveness: fix analysis of conditional branches. The logic was buggy in a couple ways: - it never actually saved the results into the IR instruction (fixed now) - it incorrectly labeled operands as dying when their true death was after the conditional branch ended (fixed now) * zir rendering is enhanced to show liveness analysis results. this helps when debugging liveness analysis. * fix bug in zir rendering not numbering instructions correctly closes #6021 | |||
| 2020-08-08 | utilize math.ceilPowerOfTwo | Andrew Kelley | |
| 2020-07-11 | run zig fmt on std lib and self hosted | Vexu | |
| 2020-07-08 | stage2: machine code for condbr jumps | Andrew Kelley | |
| 2020-06-17 | Improve f128 standard library support | antlilja | |
| * Add functions: floor128, ceil128, trunc128 and round128 * Add corresponding tests | |||
| 2020-05-01 | ZIR: add cmp and condbr instructions | Andrew Kelley | |
| 2020-04-28 | std.meta.IntType -> std.meta.Int | Tadeo Kondrak | |
| 2020-04-16 | std: make math.clamp work for common uses, remove automatic bounds swapping | Andrius Mitkus | |
| 2020-03-24 | std: Add qNaN constants | LemonBoy | |
| 2020-03-05 | std: use testing.expectEqual in math.absCast tests | daurnimator | |
| 2020-03-05 | std: fix math.absCast on i1 | daurnimator | |
| 2020-03-04 | std: Use @TypeOf(x,y) as return value for max | LemonBoy | |
| 2020-02-24 | remove uses of `@ArgType` and `@IntType` | Vexu | |
| 2020-02-24 | remove usages of `@typeId`, `@memberCount`, `@memberName` and `@memberType` | Vexu | |
| 2020-01-14 | Add clamp function to math module | Hersh Krishna | |
| 2020-01-01 | std.mem.compare: breaking API changes | Andrew Kelley | |
| * `std.mem.Compare` is now `std.math.Order` and the enum tags renamed to follow new style convention. * `std.mem.compare` is renamed to `std.mem.order`. * new function `std.math.order` | |||
| 2019-12-16 | allow comparison of any numeric types | Andrew Kelley | |
| 2019-12-16 | std: lessThan and greaterThan between signed and unsigned | Shawn Landden | |
| It is a deviation from C, but I think we should consider making this the behavior of the operators. See #2133 | |||
| 2019-12-10 | Replace @typeOf with @TypeOf in all zig source | Robin Voetter | |
| 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-11-29 | std.math: remove constants that should be expressions | Andrew Kelley | |
| All four of these can be represented in fewer characters with expressions, which will be guaranteed to happen at compile-time, and have the same or better precision. The other math constants here which depend on function calls could be similarly removed if and when #425 is solved. However I left them for now since Zig does not eagerly evaluate functions with comptime parameters. | |||
| 2019-11-19 | add `std.math.tau` constant (equivalent to 2 * pi) | dbandstra | |
| 2019-11-08 | update more of the std lib to use `@as` | Andrew Kelley | |
| 2019-11-08 | update the codebase to use `@as` | Andrew Kelley | |
| 2019-10-24 | refAllDecls in a test block to limit when it gets run | Andrew Kelley | |
