[pooma-dev] RFA: delete_test1 Modifications

James Crotinger JimC at proximation.com
Thu May 24 16:33:45 UTC 2001


The memmove optimization was fairly substantial when I tested it. I think it
would be better to modify the code to pass addresses to memmove - again this
gets to the question of whether it is really OK to use &a.begin()[0] to be
the address of the 0th element, etc.

	Jim

> -----Original Message-----
> From: Jeffrey Oldham [mailto:oldham at codesourcery.com]
> Sent: Wednesday, May 23, 2001 6:33 PM
> To: pooma-dev at pooma.codesourcery.com
> Subject: [pooma-dev] RFA: delete_test1 Modifications
> 
> 
> OK to commit?
> 
> Compiling src/Utilities/tests/delete_test1.cpp showed that the vector
> type `Array_t' was declared to store doubles but actually stored
> integers.  Also, a call to std::memmove() illegally converted vector
> iterators to pointers.  The alternative call to std::copy() is instead
> used.
> 
> 2001 May 23  Jeffrey D. Oldham  <oldham at codesourcery.com>
> 
> 	* delete_test1.cpp (Array_t): s/vector<double>/vector<int>/
> 	(delete_shiftup_test2): Remove "optimization" call to memmove.
> 
> Tested on	sequential Linux using gcc 3.0 by compiling the program
> Approved by	???you???
> 
> Thanks,
> Jeffrey D. Oldham
> oldham at codesourcery.com
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sourcerytools.com/pipermail/pooma-dev/attachments/20010524/78af7356/attachment.html>


More information about the pooma-dev mailing list