annotate runtime/macros/urm/examples @ 21403:d387121083a4 v8.2.1252

patch 8.2.1252: ":marks" may show '< and '> mixed up Commit: https://github.com/vim/vim/commit/54c3fcd852f9d986f81547429e850b3364f058d6 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 19 22:09:06 2020 +0200 patch 8.2.1252: ":marks" may show '< and '> mixed up Problem: ":marks" may show '< and '> mixed up. Solution: Show the mark position as where '< and '> would jump.
author Bram Moolenaar <Bram@vim.org>
date Sun, 19 Jul 2020 22:15:03 +0200
parents 3fc0f57ecb91
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 Note that enough temporary registers should be provided for each example.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 All should be initialised to 0.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 Initial register values for benchmarking: 0,8,3,0,...
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 Performed on a Xenix 386/16:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 Operation [sec, kbyte tmp space]: program
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 Asym. Diff.[ 7, 4]: (s2;s3)3.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 Abs. Diff. [90,81]: (a1;a4;s2)2; (a2;s1)1; (a1;a5;s3)3; (a3;s1)1; (s2;s3)3; (s5;s4)4; (a2;s5)5.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 Add [ 7, 4]: (a2;s3)3.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 Mult [227, 161]: (a4;a5;s2)2; ((a2;s4)4; s3; (a1;a4;s5)5; (a5;s1)1)3.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 Copy [ 48, 25]: (a1;a3;s2)2; (a2;s1)1.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 sign [ 30, 17]: (a3;s2)2; (a2;(s3)3)3.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 !sign[ 36, 28]: (a3;s2)2; (a2;(s3)3)3; a3; (s3;s2)2; (s3;a2)3.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 Div [630,1522]: (a9;s2)2; (a2;a10;s3)3; (a3;s2)2; (a2;(s3)3)3; a3; (s3;s2)2; (s3;a2)3; (a2)2;(a2;s9)9;(a3;s10)10; (a9;a10;s2)2; (a11;a12;s3)3; (a2;s12)12; (a3;s9)9; (s2;s3)3; (a3;s2)2; (a2;(s3)3)3; a3; (s3;s2)2; (s3;a2)3; (a1;s2)2; (a2;s10)10; (a3;s11)11; ((a12;a13;s3)3; (a3;s13)13; (s2;s3)3; (a3;s12)12; a14; (s1)1; (a9;a10;s2)2; (a11;a12;s3)3; (a2;s12)12; (a3;s9)9; (s2;s3)3; (a3;s2)2; (a2;(s3)3)3; a3; (s3;s2)2; (s3;a2)3; (a1;s2)2; (a2;s10)10; (a3;s11)11)1; (s2)2; (a2;s14)14.