diff options
author | tlatorre <tlatorre@uchicago.edu> | 2018-09-26 08:59:57 -0500 |
---|---|---|
committer | tlatorre <tlatorre@uchicago.edu> | 2018-09-26 08:59:57 -0500 |
commit | e5c270c8c442136c7fd44751e1ccac887f49bd06 (patch) | |
tree | 854259150133a810c68808e435eae45f30eb3378 /src/vector.c | |
parent | 8bdcdbc04913df2d0d4ce4d1d8d85c8da2185e59 (diff) | |
download | sddm-e5c270c8c442136c7fd44751e1ccac887f49bd06.tar.gz sddm-e5c270c8c442136c7fd44751e1ccac887f49bd06.tar.bz2 sddm-e5c270c8c442136c7fd44751e1ccac887f49bd06.zip |
speed up fast likelihood calculation
This commit speeds up the fast likelihood calculation by avoiding calls to
trigonometric functions where possible. Specifically we calculate
sin(a) = sqrt(1-pow(cos(a),2));
instead of
sin(a) = sin(acos(cos(a)));
Diffstat (limited to 'src/vector.c')
0 files changed, 0 insertions, 0 deletions