Skip to content

Commit

Permalink
group common functions in one file
Browse files Browse the repository at this point in the history
  • Loading branch information
maihd committed Apr 1, 2024
1 parent 9c3a517 commit 071425a
Show file tree
Hide file tree
Showing 11 changed files with 790 additions and 1,681 deletions.
4 changes: 1 addition & 3 deletions include/vectormath.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
#if VECTORMATH_ENABLE_CLANG_EXT
# include "vectormath/vectormath_clang.h"
#elif VECTORMATH_SIMD_ENABLE
# if VECTORMATH_NEON_SUPPORT
# include "vectormath/sse_to_neon.h"
# endif
// #if VECTORMATH_SIMD_ENABLE
# include "vectormath/vectormath_simd.h"
#else
# include "vectormath/vectormath_scalar.h"
Expand Down
2 changes: 1 addition & 1 deletion include/vectormath/scalarmath.h
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ __forceinline float float_fast_rsqrt(float x)
cvt.f = x;
cvt.i = 0x5f3759df - (cvt.i >> 1);
cvt.f = cvt.f * (1.5f - xhalf * cvt.f * cvt.f); // first approximation
// cvt.f = cvt.f * (1.5f - xhalf * cvt.f * cvt.f); // second approximation
cvt.f = cvt.f * (1.5f - xhalf * cvt.f * cvt.f); // second approximation
return cvt.f;
}

Expand Down
Loading

0 comments on commit 071425a

Please sign in to comment.