projects
/
ieee754fpu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d38dc3
)
whitespace cleanup
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Sat, 27 Apr 2019 13:01:55 +0000
(14:01 +0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Sat, 27 Apr 2019 13:01:55 +0000
(14:01 +0100)
src/add/fsqrt.py
patch
|
blob
|
history
diff --git
a/src/add/fsqrt.py
b/src/add/fsqrt.py
index 85051e086eb1f105816b2b5fd49b3d3fd69aa018..ba5fd60756109e009e586a09d37f9cefba58b3ba 100644
(file)
--- a/
src/add/fsqrt.py
+++ b/
src/add/fsqrt.py
@@
-10,11
+10,10
@@
def sqrt(num):
if (num >= res + bit):
num -= res + bit
res = (res >> 1) + bit
-
else:
res >>= 1;
bit >>= 2;
-
+
return res
"""