diff options
author | tlatorre <tlatorre@uchicago.edu> | 2019-07-29 12:23:30 -0500 |
---|---|---|
committer | tlatorre <tlatorre@uchicago.edu> | 2019-07-29 12:23:30 -0500 |
commit | 92a5425aaa49d90d4d4c1e88e8595ce932c1ad9b (patch) | |
tree | 56e9bb4d541c1b3a5df34edae5742699dd2f41ff /src/misc.h | |
parent | ebc0f100371942e99c433cf967b55524a9765c87 (diff) | |
download | sddm-92a5425aaa49d90d4d4c1e88e8595ce932c1ad9b.tar.gz sddm-92a5425aaa49d90d4d4c1e88e8595ce932c1ad9b.tar.bz2 sddm-92a5425aaa49d90d4d4c1e88e8595ce932c1ad9b.zip |
fast_sqrt -> sqrt
After some testing, I realized that the fast_sqrt() function wasn't really
faster than the native sqrt function.
Diffstat (limited to 'src/misc.h')
-rw-r--r-- | src/misc.h | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -30,9 +30,6 @@ /* Number of points to create a lookup table for the fast_acos() function. */ #define N_ACOS 10000 -/* Number of points to create a lookup table for the fast_sqrt() function. */ -#define N_SQRT 10000 - double trapz(const double *y, double dx, size_t n); int intersect_sphere(double *pos, double *dir, double R, double *l); void get_path_length(double *pos1, double *pos2, double R, double *l1, double *l2); @@ -58,6 +55,5 @@ size_t argmax(double *a, size_t n); size_t argmin(double *a, size_t n); void get_dir(double *dir, double theta, double phi); double fast_acos(double x); -double fast_sqrt(double x); #endif |