[U-Boot] [PATCH 1/3] memcpy: use 32-bit copies if possible
Eric Lammerts
u-boot at lists.lammerts.org
Sat Oct 10 18:09:37 CEST 2009
On 10/08/09 03:41, Alessandro Rubini wrote:
> For memcpy all is well, for memset I have this problem:
> if (sizeof(long) > 4)
> cl |= cl << 32;
> string.c:416: warning: left shift count >= width of type
>
> (obviously there is no such shift in the generated code,
> since the condition is false at compile time).
>
> I think I'll stick to u32 for memset, unless I get better suggestions.
What about
if (sizeof(long) > 4)
cl |= (unsigned long long)cl << 32;
?
Eric
More information about the U-Boot
mailing list