[vsipl++] [patch] Add byte-swapping support to save/load_view.hpp
Don McCoy
don at codesourcery.com
Tue Jul 1 22:42:25 UTC 2008
There were two problems with the previous version of this patch. First,
the save_view function was reversing the bytes in the view in-place.
This has been fixed by forcing it to copy the view so as to avoid this
problem. Second, complex values were being handled incorrectly, i.e.
for complex floats, the entire 8-byte quantity was being swapped leading
to the reversal of the imaginary and real components. The correct
operation is to perform two, four-bytes swaps.
Regression tests for the above were added.
Regards,
--
Don McCoy
don (at) CodeSourcery
(888) 776-0262 / (650) 331-3385, x712
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: sv.changes
URL: <http://sourcerytools.com/pipermail/vsipl++/attachments/20080701/ec380a8a/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: sv.diff
URL: <http://sourcerytools.com/pipermail/vsipl++/attachments/20080701/ec380a8a/attachment-0001.ksh>
More information about the vsipl++
mailing list