double cell example: fix shift directions

FossilOrigin-Name: 09fc476ef1e3c4169d6bb43adb5e4a061f363a692ed2bbed75ad318eaa8e374e
This commit is contained in:
crc 2023-09-20 12:00:49 +00:00
parent fb38ef58f2
commit 2e81e348d5

View file

@ -49,8 +49,8 @@ small changes (see the `dn:div` in particular).
dn:new !~res
dup-pair dn:lows n:div @~res dn:l!
dup-pair
[ dn:h@ ] [ dn:l@ ] bi* n:div #1 shift-left
[ [ dn:l@ ] [ dn:h@ ] bi* n:mod #31 shift-right ] dip n:add
[ dn:h@ ] [ dn:l@ ] bi* n:div #-1 shift
[ [ dn:l@ ] [ dn:h@ ] bi* n:mod #31 shift ] dip n:add
@~res dn:h!
@~res ;
~~~