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

Should not compile 3DNOW code for x86_64

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P4: Low
    • None
    • 4.7.1
    • GUI: Painting
    • None
    • x86_64 Linux (Fedora 14)

    Description

      Build for x86_64 should not compile 3DNOW as this code is not available in this environment.

      Runtime detection of CPU features does not even look for 3DNOW support so that flag is not set in the features flag, making all 'if (features & MMX3DNOW)' code inaccessible (dead). Why use RAM and cache space for code that can never be executed? See detectProcessorFeatures() for x86_64 runtime detection.

      The configuration script should consider the -no-3dnow switch to be implied when building for x86_64 environments. This prevents the definition of the QT_HAVE_3DNOW compiler def.

      The definition of QT_HAVE_MMXEXT is inappropriate too, but there's no config switch for that one.

      Attachments

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

        Activity

          People

            rodal Samuel Rødal
            swsnyder Steve Snyder
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes