Skip to content

Commit

Permalink
cosmetic change
Browse files Browse the repository at this point in the history
  • Loading branch information
Geolm committed Jan 24, 2024
1 parent ba08d5f commit e8c111d
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions extra/simd_approx_math.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,18 @@

//----------------------------------------------------------------------------------------------------------------------
// Prototypes
static simd_vector simd_approx_cos(simd_vector a); // max error : 5.811452866e-07, ~2.5x faster than simd_cos
static simd_vector simd_approx_sin(simd_vector a); // max error : 2.682209015e-07, ~2.5x faster than simd_cos
static simd_vector simd_approx_acos(simd_vector x); // max error : 0.000068, ~2.8x faster than simd_acos
static simd_vector simd_approx_exp(simd_vector x); // max relative error : 0.001726, ~3.7x faster than simd_exp

// max error : 5.811452866e-07, ~2.5x faster than simd_cos
static simd_vector simd_approx_cos(simd_vector a);

// max error : 2.682209015e-07, ~2.5x faster than simd_sin
static simd_vector simd_approx_sin(simd_vector a);

// max error : 0.000068, ~2.8x faster than simd_acos
static simd_vector simd_approx_acos(simd_vector x);

// max relative error : 0.001726, ~3.7x faster than simd_exp
static simd_vector simd_approx_exp(simd_vector x);


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

0 comments on commit e8c111d

Please sign in to comment.