Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Macros to optimize away float + 0.0 #21568

Merged

Commits on Apr 8, 2021

  1. macros: introduce TERNADD() and TERNSUB() for math operations

    Using TERN0() for math is not a good idea. In the case of floats, it
    might make the compiler emit code for adding/subtracting 0.0f.
    
    It makes the code look less clean though :/
    ramiropolla committed Apr 8, 2021
    Configuration menu
    Copy the full SHA
    a931ae9 View commit details
    Browse the repository at this point in the history
  2. more literal naming

    thinkyhead committed Apr 8, 2021
    Configuration menu
    Copy the full SHA
    4e9906f View commit details
    Browse the repository at this point in the history
  3. some cleaner macros

    thinkyhead committed Apr 8, 2021
    Configuration menu
    Copy the full SHA
    8dadb1b View commit details
    Browse the repository at this point in the history
  4. A simpler optimization

    thinkyhead committed Apr 8, 2021
    Configuration menu
    Copy the full SHA
    364bb60 View commit details
    Browse the repository at this point in the history
  5. Tweak platformio.ini

    thinkyhead committed Apr 8, 2021
    Configuration menu
    Copy the full SHA
    e1d5b34 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    cca5c0f View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    4c16261 View commit details
    Browse the repository at this point in the history

Commits on Apr 9, 2021

  1. Smaller NAN

    thinkyhead committed Apr 9, 2021
    Configuration menu
    Copy the full SHA
    84b5938 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    068de29 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    42f658f View commit details
    Browse the repository at this point in the history