Skip to content

Commit 0f6c947

Browse files
committed
random: Use <superscript> when explaining Xoshiro256**’s jumping methods
1 parent 2042478 commit 0f6c947

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

reference/random/random/engine/xoshiro256starstar/jump.xml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,16 @@
1212
<void />
1313
</methodsynopsis>
1414
<para>
15-
Moves the algorithm’s state ahead by 2^128 steps, as if <function>Random\Engine\Xoshiro256StarStar::generate</function>
16-
was called 2^128 times.
15+
Moves the algorithm’s state ahead by 2<superscript>128</superscript> steps, as if
16+
<function>Random\Engine\Xoshiro256StarStar::generate</function> was called
17+
2<superscript>128</superscript> times.
1718
</para>
1819

1920
<para>
2021
Jumping allows for splitting a single seeded <classname>Random\Engine\Xoshiro256StarStar</classname>
21-
engine instance into 2^128 non-overlapping instances with 2^128 values each, by repeatedly
22-
<link linkend="language.oop5.cloning">cloning</link> and then jumping an engine acting as
23-
a blueprint.
22+
engine instance into 2<superscript>128</superscript> non-overlapping instances with 2<superscript>128</superscript>
23+
values each, by repeatedly <link linkend="language.oop5.cloning">cloning</link> and
24+
then jumping an engine acting as a blueprint.
2425
</para>
2526
</refsect1>
2627

reference/random/random/engine/xoshiro256starstar/jumplong.xml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,22 @@
1212
<void />
1313
</methodsynopsis>
1414
<para>
15-
Moves the algorithm’s state ahead by 2^192 steps, as if <function>Random\Engine\Xoshiro256StarStar::generate</function>
16-
was called 2^192 times.
15+
Moves the algorithm’s state ahead by 2<superscript>192</superscript> steps, as if
16+
<function>Random\Engine\Xoshiro256StarStar::generate</function> was called
17+
2<superscript>192</superscript> times.
1718
</para>
1819

1920
<para>
2021
Long jumping allows for splitting a single seeded <classname>Random\Engine\Xoshiro256StarStar</classname>
21-
engine instance into 2^64 non-overlapping instances with 2^192 values each, by repeatedly
22-
<link linkend="language.oop5.cloning">cloning</link> and then long jumping an engine acting as
23-
a blueprint.
22+
engine instance into 2<superscript>64</superscript> non-overlapping instances with 2<superscript>192</superscript>
23+
values each, by repeatedly <link linkend="language.oop5.cloning">cloning</link> and then
24+
long jumping an engine acting as a blueprint.
2425
</para>
2526

2627
<para>
2728
Long jumping may be combined with <function>Random\Engine\Xoshiro256StarStar::jump</function>ing
28-
by further splitting each of the 2^64 instances generated by long jumping, into 2^128 instances
29-
of 2^64 values each.
29+
by further splitting each of the 2<superscript>64</superscript> instances generated by long jumping,
30+
into 2<superscript>128</superscript> instances of 2<superscript>64</superscript> values each.
3031
</para>
3132
</refsect1>
3233

0 commit comments

Comments
 (0)