zig/lib/std/math
Alex Rønne Petersen 481b7bf3f0
std.Target: Remove functions that just wrap component functions.
Functions like isMinGW() and isGnuLibC() have a good reason to exist: They look
at multiple components of the target. But functions like isWasm(), isDarwin(),
isGnu(), etc only exist to save 4-8 characters. I don't think this is a good
enough reason to keep them, especially given that:

* It's not immediately obvious to a reader whether target.isDarwin() means the
  same thing as target.os.tag.isDarwin() precisely because isMinGW() and similar
  functions *do* look at multiple components.
* It's not clear where we would draw the line. The logical conclusion before
  this commit would be to also wrap Arch.isX86(), Os.Tag.isSolarish(),
  Abi.isOpenHarmony(), etc... this obviously quickly gets out of hand.
* It's nice to just have a single correct way of doing something.
2025-02-17 19:18:19 +01:00
..
big std.Target: Remove functions that just wrap component functions. 2025-02-17 19:18:19 +01:00
complex std.math.complex: fix cosh/tanh 2024-07-30 20:31:22 +12:00
acos.zig Change many test blocks to doctests/decltests 2024-02-26 15:18:31 -08:00
acosh.zig Change many test blocks to doctests/decltests 2024-02-26 15:18:31 -08:00
asin.zig Change many test blocks to doctests/decltests 2024-02-26 15:18:31 -08:00
asinh.zig Change many test blocks to doctests/decltests 2024-02-26 15:18:31 -08:00
atan.zig Change many test blocks to doctests/decltests 2024-02-26 15:18:31 -08:00
atan2.zig Change many test blocks to doctests/decltests 2024-02-26 15:18:31 -08:00
atanh.zig Change many test blocks to doctests/decltests 2024-02-26 15:18:31 -08:00
big.zig std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
cbrt.zig Change many test blocks to doctests/decltests 2024-02-26 15:18:31 -08:00
complex.zig std.math.complex: Add squared magnitude function (#21998) 2024-11-26 13:03:48 +00:00
copysign.zig std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
cosh.zig Change many test blocks to doctests/decltests 2024-02-26 15:18:31 -08:00
expm1.zig Change many test blocks to doctests/decltests 2024-02-26 15:18:31 -08:00
expo2.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
float.zig std.math: Re-enable snan() test. 2024-10-02 04:08:24 +02:00
frexp.zig std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
gamma.zig std.Target: Remove functions that just wrap component functions. 2025-02-17 19:18:19 +01:00
gcd.zig std.math: change gcd's implementation to use Stein's algorithm instead of Euclid's (#21077) 2024-09-23 17:15:57 -07:00
hypot.zig std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
ilogb.zig std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
isfinite.zig std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
isinf.zig std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
isnan.zig std.math: Disable isSignalNan test on mips32. 2024-11-26 18:29:13 +01:00
isnormal.zig std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
iszero.zig std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
ldexp.zig std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
log.zig std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
log1p.zig Change many test blocks to doctests/decltests 2024-02-26 15:18:31 -08:00
log2.zig std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
log10.zig std.Target: Remove functions that just wrap component functions. 2025-02-17 19:18:19 +01:00
log_int.zig Sema: rewrite semantic analysis of function calls 2025-01-09 06:46:47 +00:00
modf.zig std.math: rework modf 2024-03-29 09:33:57 +00:00
nextafter.zig std.math: rename make_f80 to F80.toFloat and break_f80 to F80.fromFloat 2024-09-02 00:10:22 +03:00
pow.zig Add branchHint to std.math.pow 2024-12-18 05:30:08 -05:00
powi.zig std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
scalbn.zig Remove redundant test name prefixes now that test names are fully qualified 2024-02-26 15:18:31 -08:00
signbit.zig std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
sinh.zig Change many test blocks to doctests/decltests 2024-02-26 15:18:31 -08:00
sqrt.zig std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
tanh.zig std.math.tanh: fix special cases comment 2024-12-27 03:12:03 +01:00