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

@ -78,6 +78,7 @@ pub enum LowLevel {
NumNeg,
NumSin,
NumCos,
NumTan,
NumSqrtUnchecked,
NumLogUnchecked,
NumRound,
@ -324,6 +325,7 @@ map_symbol_to_lowlevel! {
NumNeg <= NUM_NEG,
NumSin <= NUM_SIN,
NumCos <= NUM_COS,
NumTan <= NUM_TAN,
NumSqrtUnchecked <= NUM_SQRT,
NumLogUnchecked <= NUM_LOG,
NumRound <= NUM_ROUND,