>> On Thu, 2010-02-04 at 09:14 -0800, Andreia Gaita wrote:
>> Hi everyone,
>>
>> On os_memory_aiigned.h, os_malloc_aligned does:
>>
>> buf = (char *)(((uintptr_t)ptr + sizeof(void *) + alignment - 1) &
>> ~(alignment - 1));
>>
>> which gets clamped to 32 bits and fails rather spectacularly on 64
>>
On Thu, 2010-02-04 at 09:14 -0800, Andreia Gaita wrote:
> Hi everyone,
>
> On os_memory_aiigned.h, os_malloc_aligned does:
>
> buf = (char *)(((uintptr_t)ptr + sizeof(void *) + alignment - 1) &
> ~(alignment - 1));
>
> which gets clamped to 32 bits and fails rather spectacularly on 64
> bits, th
Hi everyone,
On os_memory_aiigned.h, os_malloc_aligned does:
buf = (char *)(((uintptr_t)ptr + sizeof(void *) + alignment - 1) &
~(alignment - 1));
which gets clamped to 32 bits and fails rather spectacularly on 64
bits, the NOR needs a long cast to work properly. I've attached a
patch with the f