From 322af5ff0c94d69cef972be9e87df6697d9d7679 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 15 Sep 2023 17:16:39 +0200 Subject: Use a*a instead of pow(a, 2) --- libcrystfel/src/predict-refine.c | 6 +++--- libcrystfel/src/utils.h | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/libcrystfel/src/predict-refine.c b/libcrystfel/src/predict-refine.c index ae638025..6ef59d44 100644 --- a/libcrystfel/src/predict-refine.c +++ b/libcrystfel/src/predict-refine.c @@ -770,9 +770,9 @@ static double pred_residual(struct reflpeak *rps, int n, struct detgeom *det, res_fs = 0.0; res_ss = 0.0; for ( i=0; i