diff options
author | tlatorre <tlatorre@uchicago.edu> | 2018-08-31 10:05:03 -0500 |
---|---|---|
committer | tlatorre <tlatorre@uchicago.edu> | 2018-08-31 10:05:03 -0500 |
commit | 37510bc23ab8ba5266998c15fb48c869ef7ca796 (patch) | |
tree | 0b36a60184ef5bebaafeabbdd429cc748be28fca /src/test.c | |
parent | 56e663aa644c5a7c5ca620c3f688cdd7fbefdc7d (diff) | |
download | sddm-37510bc23ab8ba5266998c15fb48c869ef7ca796.tar.gz sddm-37510bc23ab8ba5266998c15fb48c869ef7ca796.tar.bz2 sddm-37510bc23ab8ba5266998c15fb48c869ef7ca796.zip |
rotate and translate the path in path_init to speed things up
Diffstat (limited to 'src/test.c')
-rw-r--r-- | src/test.c | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -108,15 +108,6 @@ struct solid_angle_results { {2.0,2.0,0.282707} }; -int isclose(double a, double b, double rel_tol, double abs_tol) -{ - /* Returns 1 if a and b are "close". This algorithm is taken from Python's - * math.isclose() function. - * - * See https://www.python.org/dev/peps/pep-0485/. */ - return fabs(a-b) <= fmax(rel_tol*fmax(fabs(a),fabs(b)),abs_tol); -} - int test_muon_get_T(char *err) { /* A very simple test to make sure the energy as a function of distance |