Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-47692

qt_is_inf and qt_is_nan are broken

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.7.0 Alpha
    • 5.4.0, 5.5.0
    • Core: Other
    • None
    • a2b58c1643b5c8b67cb18750ef2d565180a3a179

    Description

      qt_is_inf and qt_is_nan do check for the right exponent, but only check the most significant 4 bits of the mantissa. So, the binary64 value 0x7ff0000000000001 is seen as infinity instead of NaN.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            erikv Erik Verbruggen
            erikv Erik Verbruggen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes