aboutsummaryrefslogtreecommitdiff
path: root/lib/std/math
AgeCommit message (Expand)Author
2022-06-13std.math.big.int: update Managed.toString() to use provided allocator (#11839)Mikael Berthe
2022-06-12std: disable failing tests, add zig2 build test-std to CIVeikka Tuominen
2022-06-07std.math: Add O(log N) implementation of log2(x) for comptime_intCody Tapscott
2022-06-07std: adjust for stage2 semanticsVeikka Tuominen
2022-06-01Sema: apply previous changes to `validateUnionInit`Veikka Tuominen
2022-05-27math: make `cast` return optional instead of an errorAli Chraghi
2022-05-17std.math: simpler error handlingalice
2022-05-17Simplify `Copysign`alice
2022-05-17Simplify `signbit`alice
2022-05-16`std.math.powi`: use standard definition of underflow/overflow, implement `u0...leesongun
2022-04-27std: use float builtins instead of std.mathAndrew Kelley
2022-04-27add new builtin function `@tan`Andrew Kelley
2022-04-27stage2: fix recent LLVM backend codeAndrew Kelley
2022-04-27compiler-rt: math functions reorgAndrew Kelley
2022-04-25stdlib: Fix hex-float printing for f80Cody Tapscott
2022-04-15std.math.fabs: enable f80 testingvi
2022-04-15std.math: enable f80 tests on freebsdvi
2022-04-15std: add workaround for stage2 bugVeikka Tuominen
2022-04-14std.math.float: fix f80-backed c_longdouble constsvi
2022-04-12Add `floatFractionalBits` to replace `floatMantissaDigits`Cody Tapscott
2022-04-08std.math.isInf: add tests for +-NaNviri
2022-04-07use math/float.zig everywhereviri
2022-04-07std.math.is*Inf: make generic, support f80viri
2022-04-07std.math: generalise `inf`, even simpler `isFinite`viri
2022-04-07std.math.isFinite: make generic, support f80viri
2022-04-06std.{fmt, math}: derive float constants from stdviri
2022-04-06math.fabs: simplify implementation, add testsviri
2022-04-06math.isNormal: simplify implementation, add testsviri
2022-04-06derive float constants in a generic way (#10133)viri
2022-04-05zig fmt: remove trailing whitespace on doc commentsDamien Firmenich
2022-03-27std.math.Complex: add 'negation' and 'mulitply by i'BlueAlmost
2022-03-23math/big: correct fix for divmod (#11271)Marc Tiehuis
2022-03-14freestanding libc: include roundlAndrew Kelley
2022-03-10math: fix big.int div, gcd and bitAnd edge-casesMarc Tiehuis
2022-03-06stage2: rework `@mulAdd`Andrew Kelley
2022-02-18stage2: Implement `@bitReverse` and `@byteSwap`Cody Tapscott
2022-02-18Merge pull request #10858 from topolarity/stage2-bitcastAndrew Kelley
2022-02-17Replace magic numbers with clearer representationJ87
2022-02-13Add additional tests for `@bitCast`Cody Tapscott
2022-02-13Add `abi_size` parameter to read/writeTwosComplementCody Tapscott
2022-02-11Fix up sign handling and add arbitrary-length integer support to @bitCast()Cody Tapscott
2022-02-06std/math: optimize division with divisors less than a half-limbMarc Tiehuis
2022-01-29Fix overflow in std.math.isNormal when applied to -Inf or a negative NaNJonathan S
2022-01-28std: add f80 bitsVeikka Tuominen
2021-12-21stage2: @addWithOverflowRobin Voetter
2021-12-06std/math: hide internal cos/tan functionsMarc Tiehuis
2021-12-06std/math: fix __rem_pio2 underflowMarc Tiehuis
2021-12-06std/math: Add test cases for #9901Marc Tiehuis
2021-12-06std/math: replace golang sin/cos/tan with musl sin/cos/tanMarc Tiehuis
2021-11-30allocgate: std Allocator interface refactorLee Cannon