riscv: Intrinsify multiplyToLen and squareToLen

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • repo-riscv-port
    • Affects Version/s: repo-riscv-port
    • Component/s: hotspot

      On behalf of Taiping Guo (guotaiping1@huawei.com)

      BigInteger intrinsic: MultiplyToLen and SquareToLen intrinsic are missed in current vm. They should be implemented.
      The JMH tests show that the MultiplyToLen intrinsic improve the performance by up to 2x~3x and the SquareToLen intrinsic improve the performance by up to 1.8x~2x when the length of BigInteger changed from 1 to 5000, compared with that of C2

        1. multiplyToLen_d1.txt
          0.8 kB
        2. multiplyToLen_unmatched.txt
          0.8 kB
        3. MyBenchmark.java
          3 kB
        4. squareToLen_d1.txt
          0.8 kB
        5. squareToLen_unmatched.txt
          0.8 kB

            Assignee:
            Feilong Jiang
            Reporter:
            Feilong Jiang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: