[v3] libstdc++/44413 (for ext/vstring)
Paolo Carlini
paolo.carlini@oracle.com
Thu Jun 10 14:47:00 GMT 2010
On 06/10/2010 04:36 PM, Doug Semler wrote:
> The first is the current code, the second is the result of:
> {
> const ptrdiff_t __d = __n1 - __n2;
> const ptrdiff_t __themin = __gnu_cxx::__numeric_traits<int>::__min;
> const ptrdiff_t __themax = __gnu_cxx::__numeric_traits<int>::__max;
>
> return std::max(std::min(__d, __themax),__themin);
> }
>
I would suggest double checking what current mainline does and in case
filing an optimization PR, because certainly this is not a library
proper issue anymore.
Paolo.
More information about the Libstdc++
mailing list