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

__rw::__rw_new_capacity() uses floating point math

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.1.2, 4.1.3, 4.2.0
    • 4.2.1
    • 23. Containers
    • None
    • all

    • Patch Available
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: