aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2020-10-18 02:26:01 +0300
committerAleksey Veresov <aleksey@veresov.pro>2020-10-18 02:26:01 +0300
commit14c904b06043fa6fbbf5194b838f294248d0a360 (patch)
tree50cdf9fba7de966b7c96646e723311f7249db4e5
parent82798ff947aab53e548c6f9e3d4d8c8ff98108c3 (diff)
downloadcryptrobber-14c904b06043fa6fbbf5194b838f294248d0a360.tar
cryptrobber-14c904b06043fa6fbbf5194b838f294248d0a360.tar.xz
cryptrobber-14c904b06043fa6fbbf5194b838f294248d0a360.zip
We need more precision.
-rw-r--r--main.sts10
1 files changed, 8 insertions, 2 deletions
diff --git a/main.sts b/main.sts
index c172a33..5159f93 100644
--- a/main.sts
+++ b/main.sts
@@ -7,7 +7,7 @@ module freq.sts
[ sd 0 swap drop ]
defword nicedist
- 3e9eb852 float_fload
+ 1 float_iload 2 float_iload float_div
exit
defword calcdist ; distance from ideal as sqrt sum square diff
@@ -43,7 +43,13 @@ defword checktext
fi dup dup 'Z' > 0 = swap 'A' < 0 = mul if
dup 'Z' swap - word_size mul checktext.fr + dup @ 1 + swap !
checktext.count @ 1 + checktext.count !
- fi drop
+ fi dup 9 < if drop drop drop
+ drop drop drop drop drop drop drop drop drop drop drop drop drop
+ drop drop drop drop drop drop drop drop drop drop drop drop drop
+ 0 exit fi dup dup 1f > 0 = swap e < 0 = mul if drop drop drop
+ drop drop drop drop drop drop drop drop drop drop drop drop drop
+ drop drop drop drop drop drop drop drop drop drop drop drop drop
+ 0 exit fi drop
dup 0 = untilod drop
; ZERO DIVISION SHALL NOT PASS
checktext.count 0 = if drop