diff options
| author | DavePutz <dwputz@gmail.com> | 2020-06-08 10:42:45 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-08 10:42:45 -0500 |
| commit | ef87cc3ed389700f7d32d8a74b2e8499863f1a74 (patch) | |
| tree | 1bcae9dd5dac92169db4435421aa1a4510a449ce /lib/libm/ef_sqrt.c | |
| parent | 1f40f9e04ff9be0eb82f56014bde5749be604ad9 (diff) | |
| parent | 004d6441842981994d20027ab7e3248339524bec (diff) | |
Merge pull request #6 from adafruit/master
updating from adafruit
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; } |
