Faster Math.signum(fp) for positive and negative numbers

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: core-libs

      Math.signum(double d) and Math.signum(float f) are ~1.2-1.5x slower on positive and negative numbers than on zero and NaN. The case for majority of numbers can be improved with reasonable degradation in special cases.

            Assignee:
            Dmitry Chuyko
            Reporter:
            Dmitry Chuyko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: