Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8230835

[Graal] Missing intrinsics for Math.ceil, floor, rint.

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 14
    • hotspot

      A DESCRIPTION OF THE PROBLEM :
      The Math class lacks intrinsic implementations of the double precision fp rounding methods: ceil, floor, rint.

      On x86 SSE/AVX systems; It would be preferable to utilize instructions 'roundsd' rather than the default jdk implementation.
      Since there's also a packed variation, '(v)roundpd', the use of intrinsics may enable auto-vectorization where currently such optimization is obstructed by the default implementations of Math.ceil, floor, rint.

            Unassigned Unassigned
            jbhateja Jatin Bhateja
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: