0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib/std/math/complex
Andrew Kelley 09f1d62bdf add new builtin function @tan
The reason for having `@tan` is that we already have `@sin` and `@cos`
because some targets have machine code instructions for them, but in the
case that the implementation needs to go into compiler-rt, sin, cos, and
tan all share a common dependency which includes a table of data. To
avoid duplicating this table of data, we promote tan to become a builtin
alongside sin and cos.

ZIR: The tag enum is at capacity so this commit moves
`field_call_bind_named` to be `extended`. I measured this as one of
the least used tags in the zig codebase.

Fix libc math suffix for `f32` being wrong in both stage1 and stage2.
stage1: add missing libc prefix for float functions.
History 2022-04-27 16:45:23 -07:00
..
abs.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
acos.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
acosh.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
arg.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
asin.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
asinh.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
atan.zig compiler-rt: math functions reorg 2022-04-27 12:20:44 -07:00
atanh.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
conj.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
cos.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
cosh.zig compiler-rt: math functions reorg 2022-04-27 12:20:44 -07:00
exp.zig compiler-rt: math functions reorg 2022-04-27 12:20:44 -07:00
ldexp.zig compiler-rt: math functions reorg 2022-04-27 12:20:44 -07:00
log.zig compiler-rt: math functions reorg 2022-04-27 12:20:44 -07:00
pow.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
proj.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
sin.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
sinh.zig compiler-rt: math functions reorg 2022-04-27 12:20:44 -07:00
sqrt.zig compiler-rt: math functions reorg 2022-04-27 12:20:44 -07:00
tan.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
tanh.zig add new builtin function @tan 2022-04-27 16:45:23 -07:00