Should use SUPPORTS_NATIVE_CX8 define to help C/C++ compiler elide blocks of code

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • hs25
    • Affects Version/s: hs25, 8
    • Component/s: embedded
    • b52

        If we change Vm_version::supports_cx8() code like so then C++ compiler will create smaller/faster code in callers of that function since the return value is a constant.

        #ifdef SUPPORTS_NATIVE_CX8
          static bool supports_cx8() {return true;}
        #else
          static bool supports_cx8() {return _supports_cx8;}
        #endif

              Assignee:
              Bill Pittore (Inactive)
              Reporter:
              Bill Pittore (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: