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

count_trailing_zeros doesn't handle 64-bit values on 32-bit JVM

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 17
    • None
    • hotspot
    • b02

      count_trailing_zeros is defined only for uintx arguments, which means it doesn't work properly for a 64-bit argument on 32-bit JVMs, since the value will be downcast to 32-bit.

      We should consider making this a template function.

            redestad Claes Redestad
            redestad Claes Redestad
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: