Skip to content

Commit

Permalink
updated doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Geolm committed Jan 15, 2024
1 parent 08482d7 commit 7323c27
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 10 deletions.
3 changes: 3 additions & 0 deletions doc/simd_math.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ simd_vector simd_log(simd_vector x);

// max error : 1.108270880e-07
simd_vector simd_exp(simd_vector x);

// max error : 4.768371582e-07
simd_vector simd_cbrt(simd_vector x);
```
# simd_approx_math
Expand Down
40 changes: 30 additions & 10 deletions simd_math.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,36 @@

//----------------------------------------------------------------------------------------------------------------------
// prototypes
static simd_vector simd_sin(simd_vector x); // max error : 5.960464478e-08
static simd_vector simd_cos(simd_vector a); // max error : 5.960464478e-08
void simd_sincos(simd_vector x, simd_vector* s, simd_vector* c); // max error : 5.960464478e-08
simd_vector simd_acos(simd_vector x); // max error : 2.384185791e-07
simd_vector simd_asin(simd_vector x); // max error : 1.192092896e-07
simd_vector simd_atan(simd_vector x); // max error : 6.699562073e-05
simd_vector simd_atan2(simd_vector x, simd_vector y); // max error : 2.384185791e-07
simd_vector simd_log(simd_vector x); // max error : 4.768371582e-07
simd_vector simd_exp(simd_vector x); // max error : 1.108270880e-07
simd_vector simd_cbrt(simd_vector x); // max error : 4.768371582e-07

// // max error : 5.960464478e-08
static simd_vector simd_sin(simd_vector x);

// max error : 5.960464478e-08
static simd_vector simd_cos(simd_vector a);

// max error : 5.960464478e-08
void simd_sincos(simd_vector x, simd_vector* s, simd_vector* c);

// max error : 2.384185791e-07
simd_vector simd_acos(simd_vector x);

// max error : 1.192092896e-07
simd_vector simd_asin(simd_vector x);

// max error : 6.699562073e-05
simd_vector simd_atan(simd_vector x);

// max error : 2.384185791e-07
simd_vector simd_atan2(simd_vector x, simd_vector y);

// max error : 4.768371582e-07
simd_vector simd_log(simd_vector x);

// max error : 1.108270880e-07
simd_vector simd_exp(simd_vector x);

// max error : 4.768371582e-07
simd_vector simd_cbrt(simd_vector x);


//----------------------------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit 7323c27

Please sign in to comment.