Skip to content
Snippets Groups Projects
Select Git revision
  • dualcore
  • ch3/leds
  • wip-bootstrap default
  • ch3/time
  • master
5 results

formatfloat.c

Blame
    • Paul Sokolovsky's avatar
      9aaccd47
      py/formatfloat: Convert to fully portable implementation. · 9aaccd47
      Paul Sokolovsky authored
      This takes previous IEEE-754 single precision float implementation, and
      converts it to fully portable parametrizable implementation using C99
      functions like signbit(), isnan(), isinf(). As long as those functions
      are available (they can be defined in adhoc manner of course), and
      compiler can perform standard arithmetic and comparison operations on a
      float type, this implementation will work with any underlying float type
      (including types whose mantissa is larger than available intergral integer
      type).
      9aaccd47
      History
      py/formatfloat: Convert to fully portable implementation.
      Paul Sokolovsky authored
      This takes previous IEEE-754 single precision float implementation, and
      converts it to fully portable parametrizable implementation using C99
      functions like signbit(), isnan(), isinf(). As long as those functions
      are available (they can be defined in adhoc manner of course), and
      compiler can perform standard arithmetic and comparison operations on a
      float type, this implementation will work with any underlying float type
      (including types whose mantissa is larger than available intergral integer
      type).