Skip to content
devlinzhou edited this page Oct 21, 2022 · 9 revisions

Welcome to the deterministic_float wiki!

IEEE-754 float & My GFloat

  • IEEE-754 float

    sign exponents(8 bits) fractions(23 bits)
    31 30 29 ... 24 23 22 21 ... 1 0
    • $\mathbf{X}_{IEEE754} = (-1)^\mathbf{sign} \times (1.\mathbf{fraction}) \times 2 ^{\mathbf{exponent} - 127}$
  • GFloat

    sign fractions(23 bits) exponents(8 bits)
    31 30 29 ... 9 8 7 6 ... 1 0
    • $\mathbf{X}_{GFloat} = (-1)^\mathbf{sign} \times (\mathbf{fraction}) \times 2 ^{\mathbf{exponent} - 127}$

Transcendental function

BenchMark

  • random input
Clone this wiki locally