stl_numeric.h (partial_sum, [...]): Avoid dereferencing two times __first in the prologue.
2004-11-03 Jonathan Wakely <redi@gcc.gnu.org> * include/bits/stl_numeric.h (partial_sum, adjacent_difference): Avoid dereferencing two times __first in the prologue. From-SVN: r90038
This commit is contained in:
parent
4815ff39cb
commit
cb1d5dbaeb
@ -1,3 +1,8 @@
|
||||
2004-11-03 Jonathan Wakely <redi@gcc.gnu.org>
|
||||
|
||||
* include/bits/stl_numeric.h (partial_sum, adjacent_difference):
|
||||
Avoid dereferencing two times __first in the prologue.
|
||||
|
||||
2004-11-03 Paolo Carlini <pcarlini@suse.de>
|
||||
|
||||
* include/bits/stl_numeric.h: Trivial formatting fixes.
|
||||
|
@ -209,8 +209,8 @@ namespace std
|
||||
|
||||
if (__first == __last)
|
||||
return __result;
|
||||
*__result = *__first;
|
||||
_ValueType __value = *__first;
|
||||
*__result = __value;
|
||||
while (++__first != __last)
|
||||
{
|
||||
__value = __value + *__first;
|
||||
@ -249,8 +249,8 @@ namespace std
|
||||
|
||||
if (__first == __last)
|
||||
return __result;
|
||||
*__result = *__first;
|
||||
_ValueType __value = *__first;
|
||||
*__result = __value;
|
||||
while (++__first != __last)
|
||||
{
|
||||
__value = __binary_op(__value, *__first);
|
||||
@ -285,8 +285,8 @@ namespace std
|
||||
|
||||
if (__first == __last)
|
||||
return __result;
|
||||
*__result = *__first;
|
||||
_ValueType __value = *__first;
|
||||
*__result = __value;
|
||||
while (++__first != __last)
|
||||
{
|
||||
_ValueType __tmp = *__first;
|
||||
@ -324,8 +324,8 @@ namespace std
|
||||
|
||||
if (__first == __last)
|
||||
return __result;
|
||||
*__result = *__first;
|
||||
_ValueType __value = *__first;
|
||||
*__result = __value;
|
||||
while (++__first != __last)
|
||||
{
|
||||
_ValueType __tmp = *__first;
|
||||
|
Loading…
Reference in New Issue
Block a user