Skip to content

Commit 5809664

Browse files
committed
Use double-backticks
1 parent 870ba13 commit 5809664

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

llvm/docs/LangRef.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16731,19 +16731,19 @@ function ``fmin``, although not all implementations have implemented these recom
1673116731
If either operand is a qNaN, returns the other non-NaN operand. Returns NaN only if both operands are
1673216732
NaN or if either operand is sNaN. Note that arithmetic on an sNaN doesn't consistently produce a qNaN,
1673316733
so arithmetic feeding into a minnum can produce inconsistent results. For example,
16734-
`minnum(fadd(sNaN, -0.0), 1.0)` can produce qNaN or 1.0 depending on whether `fadd` is folded.
16734+
``minnum(fadd(sNaN, -0.0), 1.0)`` can produce qNaN or 1.0 depending on whether ``fadd`` is folded.
1673516735

1673616736
IEEE-754-2008 defines minNum, and it was removed in IEEE-754-2019. As the replacement, IEEE-754-2019
1673716737
defines :ref:`minimumNumber <llvm-minimumnum-intrinsic>`.
1673816738

1673916739
If the intrinsic is marked with the nsz attribute, then the effect is as in the definition in C
16740-
and IEEE-754-2008: the result of minnum(-0.0, +0.0) may be either -0.0 or +0.0.
16740+
and IEEE-754-2008: the result of ``minnum(-0.0, +0.0)`` may be either -0.0 or +0.0.
1674116741

1674216742
Some architectures, such as ARMv8 (FMINNM), LoongArch (fmin), MIPSr6 (min.fmt), PowerPC/VSX (xsmindp),
1674316743
have instructions that match these semantics exactly; thus it is quite simple for these architectures.
16744-
Some architectures have similiar ones while they are not exact equivalent. Such as x86 implements `MINPS`,
16745-
which implements the semantics of C code `a<b?a:b`: NUM vs qNaN always return qNaN. `MINPS` can be used
16746-
if `nsz` and `nnan` are given.
16744+
Some architectures have similiar ones while they are not exact equivalent. Such as x86 implements ``MINPS``,
16745+
which implements the semantics of C code ``a<b?a:b``: NUM vs qNaN always return qNaN. ``MINPS`` can be used
16746+
if ``nsz`` and ``nnan`` are given.
1674716747

1674816748
For existing libc implementations, the behaviors of fmin may be quite different on sNaN and signed zero behaviors,
1674916749
even in the same release of a single libm implemention.
@@ -16791,7 +16791,7 @@ function ``fmax``, although not all implementations have implemented these recom
1679116791
If either operand is a qNaN, returns the other non-NaN operand. Returns NaN only if both operands are
1679216792
NaN or if either operand is sNaN. Note that arithmetic on an sNaN doesn't consistently produce a qNaN,
1679316793
so arithmetic feeding into a maxnum can produce inconsistent results. For example,
16794-
`maxnum(fadd(sNaN, -0.0), 1.0)` can produce qNaN or 1.0 depending on whether `fadd` is folded.
16794+
``maxnum(fadd(sNaN, -0.0), 1.0)`` can produce qNaN or 1.0 depending on whether ``fadd`` is folded.
1679516795

1679616796
IEEE-754-2008 defines maxNum, and it was removed in IEEE-754-2019. As the replacement, IEEE-754-2019
1679716797
defines :ref:`maximumNumber <llvm-maximumnum-intrinsic>`.
@@ -16801,9 +16801,9 @@ and IEEE-754-2008: the result of maxnum(-0.0, +0.0) may be either -0.0 or +0.0.
1680116801

1680216802
Some architectures, such as ARMv8 (FMAXNM), LoongArch (fmax), MIPSr6 (max.fmt), PowerPC/VSX (xsmaxdp),
1680316803
have instructions that match these semantics exactly; thus it is quite simple for these architectures.
16804-
Some architectures have similiar ones while they are not exact equivalent. Such as x86 implements `MAXPS`,
16805-
which implements the semantics of C code `a>b?a:b`: NUM vs qNaN always return qNaN. `MAXPS` can be used
16806-
if `nsz` and `nnan` are given.
16804+
Some architectures have similiar ones while they are not exact equivalent. Such as x86 implements ``MAXPS``,
16805+
which implements the semantics of C code ``a>b?a:b``: NUM vs qNaN always return qNaN. ``MAXPS`` can be used
16806+
if ``nsz`` and ``nnan`` are given.
1680716807

1680816808
For existing libc implementations, the behaviors of fmin may be quite different on sNaN and signed zero behaviors,
1680916809
even in the same release of a single libm implemention.

0 commit comments

Comments
 (0)