Remove Quake Fast Inverse SQRT (it isn't faster)

This commit is contained in:
Scott Lahteine
2018-07-04 18:41:41 -05:00
parent e7e896e7d7
commit 68e6650df7
3 changed files with 1 additions and 54 deletions

View File

@@ -64,19 +64,8 @@ void recalc_delta_settings();
* (see above)
*/
#if ENABLED(DELTA_FAST_SQRT) && defined(__AVR__)
/**
* Fast inverse sqrt from Quake III Arena
* See: https://en.wikipedia.org/wiki/Fast_inverse_square_root
*/
float Q_rsqrt(float number);
#define _SQRT(n) (1.0f / Q_rsqrt(n))
#else
#define _SQRT(n) SQRT(n)
#endif
// Macro to obtain the Z position of an individual tower
#define DELTA_Z(V,T) V[Z_AXIS] + _SQRT( \
#define DELTA_Z(V,T) V[Z_AXIS] + SQRT( \
delta_diagonal_rod_2_tower[T] - HYPOT2( \
delta_tower[T][X_AXIS] - V[X_AXIS], \
delta_tower[T][Y_AXIS] - V[Y_AXIS] \