We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9a4f10 commit b5b14ffCopy full SHA for b5b14ff
compat/stagediv.fs
@@ -24,7 +24,7 @@
24
25
\ !!
26
27
-!! under construction
+\ !! under construction
28
29
: up/ ( u ud -- u2 )
30
>r over um* nip 0 rot r> um* d+ nip ;
@@ -34,4 +34,16 @@
34
>r 0 1 r@ um/mod ( m qh )
35
r@ 1- rot r> um/mod nip swap ;
36
37
-
+: ]u/ ( compilation: u1 -- ; run-time: u2 -- u3 )
38
+ ] uprepare/ postpone 2literal postpone up/ ;
39
+
40
+: benchmark
41
+ 0 100000000 0 ?do
42
+ i [ 9876543 ]u/ +
43
+ loop . ;
44
45
+: benchmark2
46
47
+ i 9876543 / +
48
49
0 commit comments