[x264-devel] unaligned accesses in IA64

Loren Merritt lorenm at u.washington.edu
Fri Feb 29 03:40:28 CET 2008


On Fri, 29 Feb 2008, Håkan Hjort wrote:

> However copying things like this is really not OK.
>
>   *(uint64_t*)mvc[0] = *(uint64_t*)a->l0.mvc[i_ref][0];
>
> Dereferencing these casted pointers breaks the aliasing rules I believe.
> The data is accessed both as int (normally), and here, as uint64_t.

Tough. Write a compiler that can optimize two consecutive stores as a 
single 64bit store, and I'll stop using workarounds.

--Loren Merritt


More information about the x264-devel mailing list