Skip to content

FTWOTOXA

Operation

Approximates two raised to the source for finite values and signed infinity.

Assembler Syntax

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

Privilege

Unprivileged

Required CPUID flags

FP

FPTRANSA

Repeat eligibility

REP eligible

Computes the \(2^x\) reference over all finite values and signed infinity after DAZ and writes an implementation-bounded S- or D-format approximation under the selected FPTRANSA accuracy contract.

The required FPTRANSA_ACCURACY contract is 0x0033.

Special values

  • Positive infinity: the result is +infinity.

  • Negative infinity: the result is positive zero.

  • Zero source: the result is positive one.

Exact anchors

  • \(2^{\mathord{\pm}0} = +1\)

  • \(2^{+\infty} = +\infty\)

  • \(2^{-\infty} = +0\)

Required properties

  • strictly increasing for finite inputs

  • result is nonnegative

2.75in

Encodings

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

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

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