Uploaded image for project: 'C++ Standard Library'
  1. C++ Standard Library
  2. STDCXX-226

__rw::__rw_new_capacity() uses floating point math

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.1.2, 4.1.3, 4.2.0
    • Fix Version/s: 4.2.1
    • Component/s: 23. Containers
    • Labels:
      None
    • Environment:

      all

    • Patch Info:
      Patch Available
    • Severity:
      Inefficiency

      Description

      Moved from the Rogue Wave bug tracking database:

      ***Created By: sebor @ May 09, 2002 11:15:41 AM***
      The template __rw_new_capacity() uses floating point arithmetic which may be less efficient than integer arithmetic on some architectures. Need to change to integer arithmetic and correctly handle integer overflow.

        Attachments

        1. benchmark-stdcxx-226.c
          0.9 kB
          Martin Sebor
        2. new_capacity.patch
          4 kB
          Farid Zaripov

          Issue Links

            Activity

              People

              • Assignee:
                farid Farid Zaripov
                Reporter:
                sebor Martin Sebor
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: