diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2022-06-27 14:38:24 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-06-28 03:48:38 +0000 |
commit | 224d749b2afee28f155dbbc4d7341e2327e96f7f (patch) | |
tree | 111d6ab627df5475c5fa5bf1e2ac351950456055 /common/newton_fit.c | |
parent | 6c75845c315b1d687e808a2cc17ea110152799b7 (diff) | |
download | chrome-ec-224d749b2afee28f155dbbc4d7341e2327e96f7f.tar.gz |
common/newton_fit.c: Format with clang-format
BUG=b:236386294
BRANCH=none
TEST=none
Change-Id: Ie51a70c4deea5bb1c951a19df6fe20310893cd17
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3729696
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'common/newton_fit.c')
-rw-r--r-- | common/newton_fit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/newton_fit.c b/common/newton_fit.c index ae81a45f07..aecc63f89f 100644 --- a/common/newton_fit.c +++ b/common/newton_fit.c @@ -32,7 +32,7 @@ static fp_t compute_error(struct newton_fit *fit, fpv3_t center) _it = (struct newton_fit_orientation *)it.ptr; e = FLOAT_TO_FP(1.0f) - - distance_squared(_it->orientation, center); + distance_squared(_it->orientation, center); error += fp_mul(e, e); } @@ -138,8 +138,8 @@ void newton_fit_compute(struct newton_fit *fit, fpv3_t bias, fp_t *radius) if (queue_is_empty(fit->orientations)) return; - inv_orient_count = fp_div(FLOAT_TO_FP(1.0f), - queue_count(fit->orientations)); + inv_orient_count = + fp_div(FLOAT_TO_FP(1.0f), queue_count(fit->orientations)); memcpy(new_bias, bias, sizeof(fpv3_t)); new_error = compute_error(fit, new_bias); |