[quake3] Just a q...
Ludwig Nussel
ludwig.nussel at suse.de
Tue Dec 6 14:37:51 EST 2005
Laurent Desnogues wrote:
> Well this is an alignment problem: src is aligned
> on a multiple of 4 and the lines there try to force
> the compiler to use double that are 8 bytes long.
>
> That code copies a square of 16x4 bytes of memory
> from src to dst where each chunk of 16 bytes is on
> a line whose width is spl bytes long.
Why didn't I come to this conclusion? :-)
Please check whether the attached patch fixes it. It uses memcpy
instead of the strange double* cast.
cu
Ludwig
--
(o_ Ludwig Nussel
//\ SUSE LINUX Products GmbH, Development
V_/_ http://www.suse.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: q3-cl_cin_alignment.diff
Type: text/x-diff
Size: 4294 bytes
Desc: not available
URL: <http://icculus.org/pipermail/quake3/attachments/20051206/dee9c372/attachment.bin>
More information about the quake3
mailing list