Skip to content

FLOG10A

Operation

Approximates base-10 logarithm for positive values, with zero as the divide-by-zero boundary.

Assembler Syntax

FLOG10A.{S|D}(z) Fn(s), Fn(d)

Privilege

Unprivileged

Required CPUID flags

FP

FPTRANSA

Repeat eligibility

REP eligible

After DAZ, computes an implementation-bounded S- or D-format approximation of the log10(x) reference under the selected FPTRANSA accuracy contract. The reference domain includes positive finite values and positive infinity; signed zero is the DZ boundary.

The required FPTRANSA_ACCURACY contract is 0x0044.

Special values

  • Zero source: DZ is generated and the result is -infinity.

  • Negative source: NV is generated and the result is the architectural default quiet NaN.

  • Positive infinity: the result is +infinity.

  • Unit source: the result is positive zero.

Exact anchors

  • log10(+1) = +0

  • log10(signed 0) = -infinity

  • log10(+infinity) = +infinity

Required properties

  • strictly increasing on the positive domain

2.75in

Encodings

FLOG10A.{S|D}(z) Fn(s), Fn(d)

Format: Instruction format for FLOG10A.{S|D}(z) Fn(s), Fn(d)

Format: Instruction format for FLOG10A.{S|D}(z) Fn(s), Fn(d)