Switch Num.tan to a zig builtin

It should be able to share some work between sine and cosine to run faster.
This commit is contained in:
Brendan Hansknecht 2023-09-16 21:27:51 -07:00
parent 7986d6cdba
commit 108d9a54e3
No known key found for this signature in database
GPG key ID: 0EA784685083E75B
11 changed files with 25 additions and 4 deletions

View file

@ -1571,6 +1571,7 @@ fn low_level_no_rc(lowlevel: &LowLevel) -> RC {
| NumNeg
| NumSin
| NumCos
| NumTan
| NumSqrtUnchecked
| NumLogUnchecked
| NumRound

View file

@ -1327,6 +1327,7 @@ fn lowlevel_borrow_signature(arena: &Bump, op: LowLevel) -> &[Ownership] {
| NumNeg
| NumSin
| NumCos
| NumTan
| NumSqrtUnchecked
| NumLogUnchecked
| NumRound

View file

@ -101,6 +101,7 @@ enum FirstOrder {
NumNeg,
NumSin,
NumCos,
NumTan,
NumSqrtUnchecked,
NumLogUnchecked,
NumRound,