diff options
| author | Scott Shawcroft <scott@adafruit.com> | 2020-06-03 12:19:20 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-03 12:19:20 -0700 |
| commit | 547beb5d4740f8e5b5db5d57a7544a4b765ef0c5 (patch) | |
| tree | 5b445330d04a03f517dc490b53c87f9c5a5e7516 /lib/libm/ef_sqrt.c | |
| parent | 01e294536c3ca36a8c9ad0e3b2c14adb5c2b85b5 (diff) | |
| parent | 79cd86445ee352861a68d395114a15c3cd4edee5 (diff) | |
Merge pull request #2981 from Flameeyes/master
Set up basic integration with pre-commit.
Diffstat (limited to 'lib/libm/ef_sqrt.c')
| -rw-r--r-- | lib/libm/ef_sqrt.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/libm/ef_sqrt.c b/lib/libm/ef_sqrt.c index 87484d0bf..8615dfc17 100644 --- a/lib/libm/ef_sqrt.c +++ b/lib/libm/ef_sqrt.c @@ -17,7 +17,7 @@ * * Developed at SunPro, a Sun Microsystems, Inc. business. * Permission to use, copy, modify, and distribute this - * software is freely granted, provided that this notice + * software is freely granted, provided that this notice * is preserved. * ==================================================== */ @@ -74,12 +74,12 @@ float sqrtf(float x) r = 0x01000000L; /* r = moving bit from right to left */ while(r!=0) { - t = s+r; - if(t<=ix) { - s = t+r; - ix -= t; - q += r; - } + t = s+r; + if(t<=ix) { + s = t+r; + ix -= t; + q += r; + } ix += ix; r>>=1; } |
