@@ -16731,19 +16731,19 @@ function ``fmin``, although not all implementations have implemented these recom
1673116731If either operand is a qNaN, returns the other non-NaN operand. Returns NaN only if both operands are
1673216732NaN or if either operand is sNaN. Note that arithmetic on an sNaN doesn't consistently produce a qNaN,
1673316733so 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
1673616736IEEE-754-2008 defines minNum, and it was removed in IEEE-754-2019. As the replacement, IEEE-754-2019
1673716737defines :ref:`minimumNumber <llvm-minimumnum-intrinsic>`.
1673816738
1673916739If 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
1674216742Some architectures, such as ARMv8 (FMINNM), LoongArch (fmin), MIPSr6 (min.fmt), PowerPC/VSX (xsmindp),
1674316743have 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
1674816748For existing libc implementations, the behaviors of fmin may be quite different on sNaN and signed zero behaviors,
1674916749even in the same release of a single libm implemention.
@@ -16791,7 +16791,7 @@ function ``fmax``, although not all implementations have implemented these recom
1679116791If either operand is a qNaN, returns the other non-NaN operand. Returns NaN only if both operands are
1679216792NaN or if either operand is sNaN. Note that arithmetic on an sNaN doesn't consistently produce a qNaN,
1679316793so 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
1679616796IEEE-754-2008 defines maxNum, and it was removed in IEEE-754-2019. As the replacement, IEEE-754-2019
1679716797defines :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
1680216802Some architectures, such as ARMv8 (FMAXNM), LoongArch (fmax), MIPSr6 (max.fmt), PowerPC/VSX (xsmaxdp),
1680316803have 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
1680816808For existing libc implementations, the behaviors of fmin may be quite different on sNaN and signed zero behaviors,
1680916809even in the same release of a single libm implemention.
0 commit comments